Calling a function from a different directory

75 views (last 30 days)
Hi
How can I put a function in a directory and use it in various other directories ?

Accepted Answer

Walter Roberson
Walter Roberson on 3 Jan 2018
Use addpath() to add the other directory to the MATLAB path.

More Answers (0)

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!