绘图出现错误?
我用以下代码绘图clear all
clc
mk=importdata('data.txt');
xx = mk(:,1);
yy = mk(:,2);
z = mk(:,3);
= meshgrid(xx,yy);
=griddata(xx,yy,z,x,y,'v4')
clear mk
mesh(x,y,z)
grid on
有的时候可以成功得到图像,有的时候却说
Warning: Matrix dimensions must agree, not rendering mesh
请问是什么状况? 原帖由 hero_lucifer 于 2008-6-2 09:52 发表 http://www.chinavib.com/forum/images/common/back.gif
我用以下代码绘图
clear all
clc
...
能否把data.txt传上来? clear all
clc
mk=importdata('data.txt');
xx = mk(:,1);
yy = mk(:,2);
z = mk(:,3);
= meshgrid(xx,yy);
Z=griddata(xx,yy,z,x,y,'v4')
clear mk
mesh(x,y,Z)
grid on
页:
[1]