I have Parse error at '<' :usage might be invalid syntax
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nguyen Hung
am 10 Okt. 2017
Beantwortet: Walter Roberson
am 10 Okt. 2017
Here is my code
for j < maxc
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Okt. 2017
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 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!