How to generate THREE surfaces side-by-side

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

답변 (1개)

arun
arun 2015년 7월 10일
편집: arun 2015년 7월 10일

0 개 추천

[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

A
A 2015년 7월 10일
Thanks! That's almost there. The data aspect ratio seems squished. Is there a way to keep default aspect ratio?
Thanks
A
A 2015년 7월 10일
Also, any way to add borders or vertical partition lines between figures to separate them a bit?
Thanks
arun
arun 2015년 7월 10일
I have included "axis square" command that can control that other similar commands are "axis equal tight", "axis equal" and "axis normal"
A
A 2015년 7월 10일
Thanks! Is there a way to add separators or borders between them?
arun
arun 2015년 7월 13일
편집: arun 2015년 7월 13일
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".

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

질문:

A
A
2015년 7월 10일

편집:

2015년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by