Calling a function from a different directory

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

 Accepted Answer

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

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!