MATLAB: Calling a function from a different directory

functionfunction directory

Hi
How can I put a function in a directory and use it in various other directories ?

Best Answer

Use addpath() to add the other directory to the MATLAB path.