How to generate THREE surfaces side-by-side

60 visualizaciones (últimos 30 días)
A
A el 10 de Jul. de 2015
Editada: arun el 13 de Jul. de 2015
Hi guys,
I want to generate THREE 3d surfaces side-by-side using matlab. I have used photoshop to combine 3 example surfaces in the image below to show what I am trying to achieve. Is it possible to do this in matlab directly without needing photoshop?
Thank you

Respuestas (1)

arun
arun el 10 de Jul. de 2015
Editada: arun el 10 de Jul. de 2015
[X Y Z] =peaks(25);
subplot(1,3,1)
surf(X,Y,Z)
axis square
subplot(1,3,2)
surf(X,Y,Z)
axis square
subplot(1,3,3)
surf(X,Y,Z)
axis square
Here subplot controls number of plot required and structure of subplot . U can refer following link for more detail http://in.mathworks.com/help/matlab/creating_plots/create-graph-with-subplots.html
  5 comentarios
A
A el 10 de Jul. de 2015
Thanks! Is there a way to add separators or borders between them?
arun
arun el 13 de Jul. de 2015
Editada: arun el 13 de Jul. de 2015
Sry I don't know any automatic way to do it. In 2D plot u can use "box" command to do it. But u can manually insert lot build in curves in matlab using insert -> line option in "figure pallet".

Iniciar sesión para comentar.

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by