Calling a function from a different directory

75 次查看(过去 30 天)
Hi
How can I put a function in a directory and use it in various other directories ?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by