"Function definitions are not permitted in this context."
Mostra commenti meno recenti
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.
Risposte (1)
David Fletcher
il 15 Apr 2018
0 voti
If you have a function in a script (allowed from R2016 onwards I think), it must go at the end, after all the script code
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!