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

2 次查看(过去 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 中查找有关 Get Started with MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by