Plot does not appear.

1 次查看(过去 30 天)
for E1=1:73
W=15;
L=1.3;
w=0.25;
h=0.075;
I=(w*h^3)/12;
Deflection5 = (W.*L.^3)/(3.*E1.*I)
plot(E1,Deflection5)
end
Guys why it does not appear what is the problem? I tried to make plot of the E1 values and Deflection while both values changing.

采纳的回答

Torsten
Torsten 2022-4-11
E1=1:73
W=15;
L=1.3;
w=0.25;
h=0.075;
I=(w*h^3)/12;
Deflection5 = (W.*L.^3)./(3.*E1.*I)
plot(E1,Deflection5)
  6 个评论
Ömer Fatih Özdemir
编辑:Ömer Fatih Özdemir 2022-4-11
for example, how to use two plot in legend?
L1=linspace(0.001,1.3);
Deflection1 = (W.*L1.^3)/(3.*E.*I);
plot(L1,Deflection1)
this and
Deflection5
Torsten
Torsten 2022-4-12
编辑:Torsten 2022-4-12
plot(L1,Deflection1)
hold on
plot(L1,Deflection5)

请先登录,再进行评论。

更多回答(1 个)

Davide Masiello
Davide Masiello 2022-4-11
编辑:Davide Masiello 2022-4-11
No need for a for loop
E1=1:73;
W=15;
L=1.3;
w=0.25;
h=0.075;
I=(w*h^3)/12;
Deflection5 = (W.*L.^3)./(3.*E1.*I);
plot(E1,Deflection5)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by