matlab syntax error "for" cannot run as it appears
显示 更早的评论
回答(1 个)
Cris LaPierre
2020-10-21
编辑:Cris LaPierre
2020-10-21
0 个投票
The issue here is you have named your script 'for.m' but for is a reserved word indicating the start of a for loop.
Give your script a different name, type 'clear for' in the Command Window, and then try again.
Typically, you would include the N=12; in your script, and just press the green Run button to run the whole script.
1 个评论
Cris LaPierre
2020-10-21
It looks like you are new to MATLAB. Consider going through MATLAB Onramp, which provides a brief introduction to the MATLAB environment and fundamentals.
类别
在 帮助中心 和 File Exchange 中查找有关 Software Development 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
