Greetings, I want to plot a figure with two y-axis but I get the undefined function for the yyaxis right command
1 次查看(过去 30 天)
显示 更早的评论
figure (1)
subplot(2,2,3)
E1=74e5;
Lz=3.5e-3:0.1e-3:8e-3;
d=10e-2;
IF=1/64*(pi*d^4);
Kz=2*1.8;
E=31;
h=0.16;
b=8.5;
n=1;
Pf=E1*IF*(n.*pi./Lz).^2+(Kz);
R=E*h*b./(2.*Pf);
yyaxis left
plot(Lz,R)
%hold on
Kz=2*3e4;
Pf=E1*IF*(n.*pi./Lz).^2+(Kz);
P=Pf*(1+Kz./(Ef.*0.6));
R=E*h*b./(2.*Pf);
yyaxis right
plot(Lz,R)
0 个评论
回答(1 个)
Steven Lord
2022-10-28
According to the yyaxis function documentation page, this function was "Introduced in R2016a". Which release are you using? If you're using a release prior to R2016a you'll need to upgrade to use this function.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!