Greetings, I want to plot a figure with two y-axis but I get the undefined function for the yyaxis right command
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Steven Lord
el 28 de Oct. de 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.
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!