I have Parse error at '<' :usage might be invalid syntax
10 次查看(过去 30 天)
显示 更早的评论
Here is my code
for j < maxc
0 个评论
采纳的回答
Walter Roberson
2017-10-10
You are using C or C++ syntax. MATLAB syntax is either
for variable = expression
or
while expression
You should probably be using
for j = 1 : maxc
or possibly
for j = 1 : maxc - 1
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!