tags:

views:

33

answers:

3

Hi,

I have some Matlab functions defined in .m files and I'd like to import them into Matlab (as in I'd like them to form part of the commands). Is this possible please and how can I do this?

Thank you very much and regards, Krt_Malta

+2  A: 

You have to set the path. See here.

Artefacto
A: 

You should be able to put them in your ~/matlab on unix.

I'm not sure which directory matlab looks in for windows, but you should be able to figure it out by executing userpath from the matlab command line.

LordOphidian
A: 

Thanks guys! I'm putting the method I used just in case someone is using Windows. I was using Matlab 2007b on Vista. You should go to File --> Set Path and add the folder containing the functions as matlab files.

Krt_Malta

Krt_Malta

related questions