why I getting error " Undefined function or variable"
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
why am I getting this message "Undefined function or variable" when I try to run this code?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/498392/image.png)
0 commentaires
Réponses (1)
Walter Roberson
le 24 Jan 2021
You have a syntax error in your file that is making it unrunnable.
As the very first character is flagged the first thing I would look for is the possibility that you have too many end statements. But if you hover your cursor on the red underline on the first line it will tell you what it thinks is wrong
3 commentaires
Walter Roberson
le 24 Jan 2021
Please attach the file for us to check. In this particular situation, please do not copy the file in as text in a comment, please attach it, as there might happen to be characters in the file that are not compatible with use as a comment here.
Voir également
Catégories
En savoir plus sur Whos dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!