function call,,,,getting error
조회 수: 1 (최근 30일)
이전 댓글 표시
hi, i am receiving the following error while i am inserting the function in the statement, can u plz help me to rid out of it??
Function definitions are not permitted at the prompt or in scripts.
please help
댓글 수: 0
답변 (1개)
Oleg Komarov
2011년 2월 16일
You're allowed to define a function only at the beginning of an .m file, then saving it and calling the function as fcn(x,y) at the cmd window or in a script you can get it 'working'.
Oleg
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!