ho to plot multy-axis with Two Y-axis in left hand side?
7 次查看(过去 30 天)
显示 更早的评论
Hi all,
I need to plot a 2-Yaxis graph. But, I need the both Y-axis in left hand side..
could you tell me about that?
THANK YOU
0 个评论
采纳的回答
Matt Fig
2012-9-1
You can just alter the PLOTYY function:
figure
x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
set(AX(2),'ytick',[-.7:.2:7])
set(AX,'yaxislocation','left')
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Two y-axis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!