what this error mean
Ältere Kommentare anzeigen
plz what this error mean ?
Error: Function definitions are not permitted in this context.
Antworten (2)
Star Strider
am 27 Jan. 2019
0 Stimmen
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.
madhan ravi
am 28 Jan. 2019
0 Stimmen
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).
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!