Filter löschen
Filter löschen

Plotting complex function N vs frequency for a range of values of N from 1 to 10

2 Ansichten (letzte 30 Tage)
Hi,
I need to plot the graph of N vs fm for different values of N. Can someone help me with the code.
for N = 1:0.5:10;
fm(N) = sqrt(((8*Wm)*(asin(Cphi)^2)*(1+sqrt(1-(Cphi)^2)))/(rhom*(4*phimax*N*R*r2)^2*(2*N*R*c)*(Ct*sin(2*alpha))*(pi^2*Cphi^2)));
end
plot(N,fm)

Akzeptierte Antwort

Chunru
Chunru am 8 Jul. 2022
Bearbeitet: Chunru am 8 Jul. 2022
x = 1:0.5:10;
for i = 1:length(x)
N = x(i)
fm(i) = sqrt(((8*Wm)*(asin(Cphi)^2)*(1+sqrt(1-(Cphi)^2)))/(rhom*(4*phimax*N*R*r2)^2*(2*N*R*c)*(Ct*sin(2*alpha))*(pi^2*Cphi^2)));
end
plot(x, fm)

Weitere Antworten (0)

Kategorien

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

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by