Reputation: 678
Is it possible to have Matlab call a function that is not in the working folder?
For example, can I specify a path like .\bar\foo(arg1)
and have the function execute? I have a number of helper functions that I want to use without clogging up my working directory.
Upvotes: 0
Views: 69
Reputation: 24127
Yes, you can use the command addpath
to add the folders you need to the MATLAB path.
Upvotes: 1