I\'m quite new to Matlab. I\'ve defined a function inside a .m file, I want to use that function in that .m file inside another .m file, and I want to run the contents of that l
For anyone else searching for this question, as I did, just type:
addpath('[Path name of mat file]');
This will tell Matlab how to find the function. To verify, just type:
which [function name]
If successful, it should list the path name that you just added.