import ".m" file into simulink
I am currently working on simulink and I encountered problem importing a source code (which is in ".m" format) into simulink. I've tried using the "from file" icon (under the "source" toolbox)but it only supports ".mat" format. Could anyone give me advise on importing .m file into simulink? Thanks! Your help is appreciated.