command window does not recognize the functions in editor
Show older comments
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 Comments
madhan ravi
on 12 Jul 2020
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:
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!