How to draw three graphs together to make a composite figure

조회 수: 1 (최근 30일)
Parthu P
Parthu P 2020년 1월 8일
댓글: Parthu P 2020년 1월 8일
Hi,
I need some help to draw parts 'A' and 'B' as shown in following diagram:
scan_uqrpati1_2020-01-08-13-01-32.jpeg
I used plot3 (x,y,z) to draw main figure but I also want to draw subfigures 'A' and 'B' as showed above such that 'A' and 'B' have same x- and y-axes respectively.
Thanks in advance.
  댓글 수: 1
KSSV
KSSV 2020년 1월 8일
Make the coordinates for the other A, B use hold on and plot.

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

채택된 답변

KSSV
KSSV 2020년 1월 8일
C = [0 0 ; 1 0 ; 1 1 ; 0 1 ; 0 0 ] ;
A = [0 1 ; 0 1.25 ; 1 1.25 ; 1 1 ; 0 1] ;
B = [1 0 ; 1 1 ; 1.25 1 ; 1.25 0 ; 1 0] ;
plot(C(:,1),C(:,2),'r')
hold on
plot(A(:,1),A(:,2),'r')
plot(B(:,1),B(:,2),'r')
  댓글 수: 1
Parthu P
Parthu P 2020년 1월 8일
Thank you very much for response.
I trid this but I'm looking for something different. I think it's my mistake in expplaining the problem.
Actually I'm looking for following:
Picture1.jpg

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by