Effacer les filtres
Effacer les filtres

How to modify the coordinate of a 3D cube ?

1 vue (au cours des 30 derniers jours)
Yapo OBOUE
Yapo OBOUE le 21 Juin 2019
Réponse apportée : KSSV le 21 Juin 2019
Hi everyone ! I am making a 3D cube through this following code :
load A;
[nt,nx,ny]=size(A);
times = 1:300;
x=1:12;
y=1:12;
h=figure(1);
[T,X,Y]=meshgrid(times,x,y);
B=permute(A,[2 1 3]);
slice(T,X,Y,B,times(1),x(1),y(1));
set(gca,'zdir','reverse');
shading interp;
colormap jet;
when I run the code, I get this result :
3D_cube.jpg
Is there a code that could allow me to obtain this 3D cube with the coordinate (Times) in the vertical direction in order to get something that way :
Wish3D.png
Thanks for giving me a hand.

Réponse acceptée

KSSV
KSSV le 21 Juin 2019

Plus de réponses (0)

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by