Function command y = f(x)
Ältere Kommentare anzeigen
So, here's a screenshot of my problem.
The upper part is the text from a Matlab Essentials book, and the lower part is where I try the example given in the book.
Why is it giving me an error? What am I missing here?
Akzeptierte Antwort
Weitere Antworten (1)
Orion
am 15 Okt. 2014
0 Stimmen
because you're trying to declare a function in the command window, which is impossible.
a function can only be declared in a Mfile.
Kategorien
Mehr zu Adding custom doc 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!