Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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)

Réponse acceptée

Chunru
Chunru le 8 Juil 2022
Modifié(e) : Chunru le 8 Juil 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)

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by