I have Parse error at '<' :usage might be invalid syntax
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Here is my code
for j < maxc
0 Commenti
Risposta accettata
Walter Roberson
il 10 Ott 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 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!