Filter löschen
Filter löschen

Greetings, I want to plot a figure with two y-axis but I get the undefined function for the yyaxis right command

1 Ansicht (letzte 30 Tage)
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)

Antworten (1)

Steven Lord
Steven Lord am 28 Okt. 2022
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.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by