what ever follows "end" has error: parse error at time: usage might be invalid matlab syntax

조회 수: 1 (최근 30일)
Like shows in pic, I tried different ways, but whatever I put in the next line under 'end', there will be an error: parse error at xxx: usage might be invalid matlab syntax. Anybody had the same issue? How did you fixed? Thanks for any tips.

채택된 답변

Divyajyoti Nayak
Divyajyoti Nayak 2023년 6월 23일
Hi Yao,
Functions always come at the end of a matlab script. So just put those commands before the function definition and it should work.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by