plot a vector in 3D

3 visualizzazioni (ultimi 30 giorni)
Mani
Mani il 1 Apr 2020
Commentato: KSSV il 1 Apr 2020
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
  1 Commento
KSSV
KSSV il 1 Apr 2020
You should read about surf, pcolor,

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by