Hi, I want to plot 4 y-axes against x-axis. How do I plot it?
19 ビュー (過去 30 日間)
古いコメントを表示
Hi, I want to plot 4 y-axes against x-axis. I want to put legend and colour. How do I plot it? Thanks Isa
2 件のコメント
Jos (10584)
2017 年 3 月 2 日
編集済み: Jos (10584)
2017 年 3 月 2 日
Something like plotyy but then with four y-axes? Can you draw an example?
回答 (2 件)
Rik
2017 年 3 月 2 日
Another interpretation of your question results in this solution:
x = linspace(0,2*pi); y1 = sin(x); y2 = sin(5*x); y3= sin(10*x); y4=sin(15*x);
plot(x,y1,'b',x,y2,'r',x,y3,'c',x,y4,'k')
legend({'sine of x','sine of 5x','sine of 10x','sine of 15x'})
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!