【发布时间】:2010-05-06 10:04:36
【问题描述】:
我有一个 10x10x10 数组,z。如何在 SAME 窗口中绘制所有内容,以便获得 z(:,:,1) 的 3 个图,以及 z(:,:,2) 等的三个图?
这是我目前所拥有的:
for i = 1:10
z=z(:,:,i);
figure(i)
subplot(1,2,1)
surf(z)
%code, obtain new array called "new1"...
subplot(1,2,2)
surf(new1)
%code, obtain new array called "new2"...
subplot(1,3,3)
surf(new2)
end;
【问题讨论】:
标签: matlab multidimensional-array