MATLAB的画点问题

h=12 for y=h:-1:0 for x=y:2:(2*h-y) plot(x,y,'.','markersize','10') hold on end end h = 12 ??? Error using ==> plot Value must be numeric

h=12;
for y=h:-1:0
for x=y:2:(2*h-y)
plot(x,y,'.','markersize',10);
hold on
end
end
hold off

marksize属性后面的10输入数值,不是输入字符串
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答