what ever follows "end" has error: parse error at time: usage might be invalid matlab syntax
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
yao
am 23 Jun. 2023
Kommentiert: yao
am 23 Jun. 2023
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.

0 Kommentare
Akzeptierte Antwort
Divyajyoti Nayak
am 23 Jun. 2023
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!