parse error message. "Parse error at '<='. usage might be invalid syntax"

1 visualización (últimos 30 días)
Chas Seldon
Chas Seldon el 23 de Mzo. de 2020
Respondida: Fangjun Jiang el 23 de Mzo. de 2020
This code:
i=0;
for i <= 3
[X,Y,t] = meshgrid(0:2,0:2,0:i);
U = X;
V = t.^2;
quiver(X,Y,U,V);
i+1;
end
gives the error message: "Parse error at '<='. usage might be invalid syntax". I don't know why this would be invalid syntax.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 23 de Mzo. de 2020
Looks like it needs to be "while i<=3"

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by