"Function definitions are not permitted in this context."
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.
0 commentaires
Réponses (1)
David Fletcher
le 15 Avr 2018
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
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!