plot a vector in 3D

1 Ansicht (letzte 30 Tage)
Mani
Mani am 1 Apr. 2020
Kommentiert: KSSV am 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 Kommentar
KSSV
KSSV am 1 Apr. 2020
You should read about surf, pcolor,

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu GPU Computing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by