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 Exchange에서 Search Path에 대해 자세히 알아보기

질문:

2018년 1월 3일

답변:

2018년 1월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by