Function command y = f(x)
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Orion
2014년 10월 15일
0 개 추천
because you're trying to declare a function in the command window, which is impossible.
a function can only be declared in a Mfile.
카테고리
도움말 센터 및 File Exchange에서 Adding custom doc에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!