"Function definitions are not permitted in this context."
조회 수: 2 (최근 30일)
이전 댓글 표시
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.
댓글 수: 0
답변 (1개)
David Fletcher
2018년 4월 15일
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
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!