I have Parse error at '<' :usage might be invalid syntax

2 ビュー (過去 30 日間)
Nguyen Hung
Nguyen Hung 2017 年 10 月 10 日
回答済み: Walter Roberson 2017 年 10 月 10 日
Here is my code
for j < maxc

採用された回答

Walter Roberson
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

その他の回答 (1 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by