Why do the x-axis tick marks overlap when using the PLOTYY function in MATLAB?
이전 댓글 표시
When I execute the commands:
for i=1:0.1:10
P = i*0.9;
Pnew= 1.05*exp(-(3.24*(i*(1.8+i*0.027)-P)/279))*((i-(0.5*exp(3.24*(i*(1.8+i*0.027)-P)/74))));
P=Pnew;
eff=Pnew/(i*1.8);
[ax, h1, h2] = plotyy(i,Pnew,i,eff,'plot');
set(get(ax(1),'Ylabel'),'String','Power')
set(get(ax(2),'Ylabel'),'String','Effeciency')
hold on
end
xlabel('Current[A]')
title('Diode LIV Plot')
I receive a plot with overlapping tick marks along the x-axis.
채택된 답변
추가 답변 (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!