You should read about surf, pcolor,
plot a vector in 3D
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am not a MatLab expert and I received help to run some PCA analyses, create vectors, and subplots.
I would like to change the 2D subplots into some kind of heatmaps/ 3D images.
My commands are the following:
Z = zeros(121,145,121);
Z(:) = vars.target_images(:,1);
Z(vars.meanful_set)=vars.eigenimages_noZeroes(:,1);
subplot(2,2,1)
image(10000*squeeze(Z(:,:,10+17)))
subplot(2,2,2)
image(10000*squeeze(Z(:,:,10+2*17)))
subplot(2,2,3)
image(10000*squeeze(Z(:,:,10+3*17)))
subplot(2,2,4)
image(10000*squeeze(Z(:,:,10+4*17)))
Anyone know how or what to change to obtain 3D images?
Thanks.
MP
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!