Plotting data using multiple axes

2 ビュー (過去 30 日間)
Harrison Gardner
Harrison Gardner 2017 年 4 月 7 日
コメント済み: Harrison Gardner 2017 年 4 月 7 日
Hi I'm currently trying to plot three sets of data (airfoil geometry, tangential velocity, coeff. of pressure) using the plot function.
figure
hold on;
plot(xc,yc);
plot(xi,vtan);
plot(xi,-1*cp);
ylim([0,2]);
hold off;
This is currently my code (picture of out put below). I need a way to get the data for plot(xi,vtan)[red line] and plot(xi,-1*cp)[yellow line] to be plotted against a secondary Y axis, so that I can enlarge the line for plot(xc,yc) [blue line] on the primary left axis. Any idea on how to do this? thanks.

採用された回答

KSSV
KSSV 2017 年 4 月 7 日
If you are using below 2016, see this https://in.mathworks.com/help/matlab/ref/plotyy.html
  1 件のコメント
Harrison Gardner
Harrison Gardner 2017 年 4 月 7 日
Thanks!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by