フィルターのクリア

ho to plot multy-axis with Two Y-axis in left hand side?

12 ビュー (過去 30 日間)
Alzapoa
Alzapoa 2012 年 9 月 1 日
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

採用された回答

Matt Fig
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 件のコメント
Alzapoa
Alzapoa 2012 年 9 月 2 日
Hi Matt, that's very good, so how to shift one of the axis to left more. we dont want them on top of eachother.and alosio, we dont want the right side y-axis

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2012 年 9 月 1 日

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by