How to draw three graphs together to make a composite figure
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/260381/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 Kommentar
Akzeptierte Antwort
KSSV
am 8 Jan. 2020
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')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!