How to draw three graphs together to make a composite figure
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I need some help to draw parts 'A' and 'B' as shown in following diagram:
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.
采纳的回答
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')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!