TheCodeNovice
TheCodeNovice

Reputation: 678

Call a Matlab function not in working directory

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

Answers (1)

Sam Roberts
Sam Roberts

Reputation: 24127

Yes, you can use the command addpath to add the folders you need to the MATLAB path.

Upvotes: 1

Related Questions