plotyy axis values
显示 更早的评论
I am using the plotyy function as below. The plot comes out fine with the correct limits however the axis values on the right hand y-axis (ax(2)) are missing. the zero is in the bottom right corner, and there is a marker nearly at the top but no value on it... is there a way to get it to show the values?
[ax,h1,h2] = plotyy(i*Ac,V,i*Ac,power);
ylim(ax(1),[0 (Nc*1.2)]);
ylim(ax(2),[0 (Nc*0.5*il*Ac)]);
2 个评论
Walter Roberson
2011-10-2
Your Ac data appears to be complex: plot in the two-array case can only plot real values, so for i*Ac to be real, Ac must be complex and have all-zero real components. But then for the second ylim to be real-valued, either il or Nc would have to be complex, but we can see from the first ylim that Nc must be real valued. So is it correct that il is complex ?
Dallas
2011-10-3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Two y-axis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!