Plotting 2d contour plots as stacks in 3D

Hi. I have multiple 2D contour plots and i want to stack them as slice views in 3D. I want to stack fig 1 at specific line for example at X=0, the next fig 2 at position X= 0.25. Can someone tell me how can i do that. Kind regards

2 comentarios

KSSV
KSSV el 7 de Jun. de 2021
REad about slice.
Kaushal Kishore
Kaushal Kishore el 7 de Jun. de 2021
How can i stack figures as slices. I tried but was not able to do it

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 7 de Jun. de 2021
[X,Y,C] = peaks(100) ;
figure
hold on
for i = 1:10
Z = i*ones(size(X)) ;
Ci = rand*C ;
surf(X,Y,Z,C)
end
view(3)

3 comentarios

Kaushal Kishore
Kaushal Kishore el 9 de Jun. de 2021
How do i stack my images that i already have.
KSSV
KSSV el 9 de Jun. de 2021
You said already you have the data right? In the surf function use your data. Extend the given demo code to your case.
Kaushal Kishore
Kaushal Kishore el 9 de Jun. de 2021
I have got multiple images only. I

Iniciar sesión para comentar.

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Jun. de 2021

Comentada:

el 9 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by