Calling a function from a different directory

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

 採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 3 日

5 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by