필터 지우기
필터 지우기

how to slove Function definitions are not permitted in this context?

조회 수: 1 (최근 30일)
fatemeh p
fatemeh p 2018년 4월 5일
댓글: Walter Roberson 2018년 4월 5일

답변 (1개)

Steven Lord
Steven Lord 2018년 4월 5일
The ability to create scripts containing local functions was introduced in release R2016b. If you are using an older release, you cannot include a local function inside a script file.
If you are using release R2016b or later, is this your entire script file? You're not trying to define the local function inside a for or while loop or inside an if / elseif / else block, are you?
  댓글 수: 2
fatemeh p
fatemeh p 2018년 4월 5일
oh,i'm using an older release R2015a. thank you very much
Walter Roberson
Walter Roberson 2018년 4월 5일
You will need to put the function into a different file.
You do not appear to be invoking the function?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by