Parse error at END: usage might be invalid MATLAB syntax

18 Ansichten (letzte 30 Tage)
Hemanth Hariharan
Hemanth Hariharan am 3 Jun. 2019
Kommentiert: Mubarak am 22 Feb. 2021
Screenshot (3).png
MATLAB App Designer doesn' even let me run this, saying 'Invalid use of operator'. Even before I run, I get this parse error at END. I've rechecked the code multiple times and am unable to figure out the problem. Pleass helpp!
  8 Kommentare
Walter Roberson
Walter Roberson am 22 Feb. 2021
Notice line 87 and 88 have their end at the same level. With the default auto-indent settings the only time that happens is if you are in a top level function and a nested function ends on line 87 and the top level ends at line 88.
But if you ended the top level function on line 88 then there is no level available to end at line 102.
I recommend that you use Preferences to change indent style from Classic to All Functions and then re-do the auto-indent
Mubarak
Mubarak am 22 Feb. 2021
@Walter Roberson Thank you very much. It's sorted out :)

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by