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!