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

2 次查看(过去 30 天)
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.

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2020-3-23
Looks like it needs to be "while i<=3"

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by