Plotting data using multiple axes
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!