答案 0 :(得分:0)
使用整形来减小数据的尺寸:
data = rand(48,64,190);
[sz1,sz2,sz3] = size(data);
f = figure;
% reshape not required
imagesc(data(:,:,140));
title('z=140');
h = figure;
imagesc(reshape(data(36,:,:), sz2, sz3));
title('x=36');
i = figure;
imagesc(reshape(data(:,47,:), sz1, sz3));
title('y=47');