"Function definitions are not permitted in this context."

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2018년 4월 15일
답변: David Fletcher 2018년 4월 15일
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일
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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by