function call,,,,getting error
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi, i am receiving the following error while i am inserting the function in the statement, can u plz help me to rid out of it??
Function definitions are not permitted at the prompt or in scripts.
please help
0 commentaires
Réponses (1)
Oleg Komarov
le 16 Fév 2011
You're allowed to define a function only at the beginning of an .m file, then saving it and calling the function as fcn(x,y) at the cmd window or in a script you can get it 'working'.
Oleg
0 commentaires
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!