>> x=(0:0.01:2*pi);
>>y=(0:0.01:2*pi);
>>[x,y]=meshgrid(x);
>>z=sin(y).*cos(x);
>>mesh(x,y,z,cool)
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
这是哪里出现了错误呢?为什么呢?
小白一枚,求解
最好能有大神附上改过的
>>y=(0:0.01:2*pi);
>>[x,y]=meshgrid(x);
>>z=sin(y).*cos(x);
>>mesh(x,y,z,cool)
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
Warning: size(CData) must equal size(ZData) or size(ZData)-1 for flat shading
这是哪里出现了错误呢?为什么呢?
小白一枚,求解
![](http://tb2.bdstatic.com/tb/editor/images/face/i_f09.png?t=20140803)
![](http://a.hiphotos.baidu.com/album/pic/item/b219ebc4b74543a903dab2051e178a82b8011431.jpg?v=tbs)