plot a vector in 3D

3 visualizaciones (últimos 30 días)
Mani
Mani el 1 de Abr. de 2020
Comentada: KSSV el 1 de Abr. de 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 comentario
KSSV
KSSV el 1 de Abr. de 2020
You should read about surf, pcolor,

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by