d_debug 发表于 2008-1-27 17:04

我这个插值程序哪儿错了,求助

我这个插值程序哪儿错了,求助
%tnterp2插值(二维插值)
width=1:5;
depth=1:3;
temps=;%data
di=linspace(1,3,20);
wi=linspace(1,5,20);
zcubic=interp2(width,depth,temps,wi,di,'cubic'); %cubic
mesh(wi,di,zcubic);
xlabel('Width of Plate'),ylabel('Depth of Plate');
zlabel('Degrees Celsius');axis('ij');grid on;
页: [1]
查看完整版本: 我这个插值程序哪儿错了,求助