Matlab三维图的切面--四维图

X = linspace(0.18,10,10); %X轴范围
Y = linspace(0.3,80,10); %Y轴范围
Z = linspace(0,0.8,17); %Z轴范围
[X1,Y1,Z1] = meshgrid(X,Y,Z);


xs = 0.8; %x轴切线
ys = 0.3; %y轴切线
zs = 0;  %z轴切线
h = slice(X1,Y1,Z1,S,xs,ys,zs); %S为该坐标的值

 

你可能感兴趣的:(Matlab)