command window does not recognize the functions in editor
古いコメントを表示
The two functions defined in editor and saved in C:\Users\SONY VAIO\Documemts\'function name'.
But when the function is called in command window it shows the error, Undefined Function. Neither can it recognize the variables used in the function. how should I so;ve the error?
2 件のコメント
madhan ravi
2020 年 7 月 12 日
which function_name -all % that is the path of your function , see if it’s under the directory you are working in
"command window does not recognize the functions in editor"
There is no reason why it should: the files that are open in the MATLAB Editor can be saved in any location accesible to your OS user account, whereas the functions that can be run must be on the MATLAB Search Path or in the current directory.
Learn about the Search Path:
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!