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!