How do I fix the error "Function definitions are not permitted at the prompt or in scripts"?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I get an error when I type this:
function S = timestr(D,precision)
Here is the error:
Error: Function definitions are not permitted at the prompt or in scripts.
What does it mean?
1 Kommentar
Jan
am 27 Mai 2011
After you've edited the text, your question is clearer. And you type this in the command line? Do you want to create the function or do you have a file called "timestr.m" already?
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!