what this error mean
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
plz what this error mean ?
Error: Function definitions are not permitted in this context.
0 Commenti
Risposte (2)
Star Strider
il 27 Gen 2019
It means that you need to save your function as a seprate function file (a ‘.m’ file with the same name as your function) on your MATLAB search path.
0 Commenti
madhan ravi
il 28 Gen 2019
When you are using version prior to 2016b a function definition cannot be included in a script (reason of your error) , therefore you need to save it in a separate file with the same name of a a function. Keep in mind you cannot paste a function in command window (in any versions of matlab).
0 Commenti
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!