Friday, March 29, 2013

Using m-functions in FreeMat

FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. It is similar to commercial systems such as MATLAB from Mathworks.

If you don't have FreeMat installed, you can refer here how to get FreeMat.

The folder where you save the m functions should be defined in FreeMat path.

Step 1, Open pathtool in FreeMat:
The tool to integrate m-function folder in FreeMat is pathtool.

(a) Open FreeMat and type pathtool and Enter. Alternatively you can open the path tool window from the menu  Tool > Path Tool
(b) Find the folder where you save your m files (for example m-functions) on the left box, then select  Add, Save then confirm it by pressing Done.

Step 2, Restart FreeMat:
Restart FreeMat to completely integrate the m files path.

After restarting FreeMat, it can access and use the m files located in the folder (in this example the name of the folder is m-functions).


  1. thanks for sharing this useful post...!!!

  2. Thanks for any other great article. Where else may anyone get that kind of info in such a perfect method of writing? I have a presentation subsequent week, and I’m at the search for such info.