Why cant I create a function in MatLab student version?
Mostra commenti meno recenti
When I try to create a function i keep getting this error Error: Function definitions are not permitted in this context.
Here is the code I wrote
function sum = myfirst(v,w)
then I get the mentioned error
Risposta accettata
Più risposte (1)
per isakson
il 6 Set 2014
Modificato: per isakson
il 7 Set 2014
0 voti
Because function sum = myfirst(v,w) must be the first executable line of the m-file. Read Function Basics, Create functions, including anonymous, local, and nested functions
Categorie
Scopri di più su Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!