필터 지우기
필터 지우기

How do I fix this jumping parse error?

조회 수: 1 (최근 30일)
Colin Lynch
Colin Lynch 2018년 8월 25일
댓글: Walter Roberson 2018년 8월 25일
At the end of a piece of script I'm writing i am attempting to set a variable. Despite this being really simple an error pops up saying, "Parse error at ']' might be invalid Matlab Syntax". There is another error on the same line which states, "Invalid syntax at '='possibly a ']' missing" despite there clearly being an end bracket there. These errors prevent the script from running, so I deleted the variable. The strangest part of this, though, is that the errors jump to the next variable in the script, which had been working perfectly well previously. Deleting or moving this variable just causes the error to jump again. Copying and pasting the script onto a new script, moving to a new computer, and downloading older versions of Matlab don't seem to solve the problem. Does anyone know what is happening here and how I can fix it?
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 8월 25일
Share the code?
Walter Roberson
Walter Roberson 2018년 8월 25일
The problem is not on that line: the problem is that the previous [ is not matched by ]

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by