"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
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에 대해 자세히 알아보기

제품

태그

질문:

2018년 4월 15일

답변:

2018년 4월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by