MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 关于画四维图像的问题 (https://www.labfans.com/bbs/showthread.php?t=13830)

zhanghaoyang 2011-08-23 13:24

关于画四维图像的问题
 
代码如下
[x,y,z] = meshgrid(0:.5:10,0:.5:10,0:.5:10);
c=8.3*10^(-9)*exp(-2*x.-19.5*y.^2/(1+0.0001*x.))
*(exp(34.7*(z.-20+5.4*100*x.)*x.^(-2))+ exp(34.7*(z.-20-5.4*100*x.)*x.^(-2)))
*x.^(-2)*(1+0.0001*x.)^(0.5);
xs = [0,2,4,6,8,10];
ys = [4];
zs = [6]
slice (x,y,z,c,xs,ys,zs)
colormap hsv

可是就是不知道为什么画不出来。。。。我参考过版上其他四维的画法,觉得应该没什么问题啊。
希望有大神指点,谢谢~


所有时间均为北京时间。现在的时间是 14:38

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