MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   数学 (https://www.labfans.com/bbs/forumdisplay.php?f=15)
-   -   曲面拟合问题请教 (https://www.labfans.com/bbs/showthread.php?t=8398)

fuhao_987 2009-05-16 20:12

曲面拟合问题请教
 
有一个数组比如
test=
1 2
3 6
9 10
3 6
0 8
我用hist3(test,[10,10])画出统计直方图,我需要把这个统计的直方图拟合成曲面,
请问怎么做?谢谢~~~~~~~~~~~!

cfchenchen 2009-06-23 13:37

回复: 曲面拟合问题请教
 
用hist3(test,[10,10])我怎么画不出统计直方图,
但是用下面这个还行,
test=[1,2;3,6;9,10;3,6;0,8]
hist(test)
拟合曲面如下:
test=[1,2;3,6;9,10;3,6;0,8]
[X,Y]=meshgrid(1:2,1:5);
surf(X,Y,test);
shading interp;


所有时间均为北京时间。现在的时间是 07:01

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.