plot a vector in 3D

1 vue (au cours des 30 derniers jours)
Mani
Mani le 1 Avr 2020
Commenté : KSSV le 1 Avr 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 commentaire
KSSV
KSSV le 1 Avr 2020
You should read about surf, pcolor,

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by