I have Parse error at '<' :usage might be invalid syntax
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nguyen Hung
el 10 de Oct. de 2017
Respondida: Walter Roberson
el 10 de Oct. de 2017
Here is my code
for j < maxc
0 comentarios
Respuesta aceptada
Walter Roberson
el 10 de Oct. de 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 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!