How to run the program (Path Issues)

20 ビュー (過去 30 日間)
Mohammad
Mohammad 2014 年 9 月 20 日
回答済み: Guillaume 2014 年 9 月 20 日
How to make my program which is m file to be worked in any computer without affected by the path. i.e. suppose I am running my program in my desktop and i will send it to my colleague who will run it on directly on his C drive

回答 (1 件)

Guillaume
Guillaume 2014 年 9 月 20 日
You don't have a choice, for matlab to see a m file it needs to be in its path. So you either put the file in a folder already on the matlab path, you add the file's folder to the path with addpath, or you change the current folder to the file's folder with cd.

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by