"Function definitions are not permitted in this context."
이전 댓글 표시
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.
답변 (1개)
David Fletcher
2018년 4월 15일
0 개 추천
If you have a function in a script (allowed from R2016 onwards I think), it must go at the end, after all the script code
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!