フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

question about how to plot a for loop in matlab

1 回表示 (過去 30 日間)
Nelcy Porras
Nelcy Porras 2019 年 7 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hello Guys
I am trying to plot this
Lr=300e-6;
Cr=20e-9;
Re=8;
Qe=sqrt(Lr/Cr)/Re;
Ln=1;
for Fn=0.1:0.01:10;
Mg=abs((Ln*Fn*Fn)/(((Ln+1)*Fn*Fn-1)+((Fn^2-1)*Fn*Qe*Ln)*i))
hold on
end
plot (Fn,Mg)
hold on
But I dont any response in figure.
Can u please help me. Thanks a lot

回答 (1 件)

infinity
infinity 2019 年 7 月 19 日
Hello,
Try to put plot inside the loop
for Fn=0.1:0.01:10;
Mg=abs((Ln*Fn*Fn)/(((Ln+1)*Fn*Fn-1)+((Fn^2-1)*Fn*Qe*Ln)*i))
plot (Fn,Mg)
hold on
end

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by