trying to plot these four different views of c130 plane into one image. I need the top, side, front, and original(isometric) to all be displayed at once when i run the program. Attatched is my code and also the four differet views i have captured. Please help, not sure what to add into my code to obtain this.

 채택된 답변

darova
darova 2020년 4월 10일

0 개 추천

Use copyobj and view
Simple example
subplot(211)
x = 0:10;
y = sin(x);
h = plot(x,y);
subplot(212)
h1 = copyobj(h,gca);
ylim([-2 2])
Example for your code
figure
subplot(221)
copyobj(h,gca)
view(2)
subplot(222)
copyobj(h,gca)
view(3)
subplot(223)
copyobj(h,gca)
view(0,90)
subplot(224)
copyobj(h,gca)
view(0,0)

댓글 수: 3

random1072
random1072 2020년 4월 13일
@darova, thank you for the response. It works however the pictures are somewhat disoriented. Is there a way to fix that
darova
darova 2020년 4월 13일
what about these?
random1072
random1072 2020년 4월 13일
Yes this worked great thank you, I just added the code Axis right equal, lighting gouraud, camlight to the end of your code and got my desired output.. thanks again big help

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

질문:

2020년 4월 10일

댓글:

2020년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by