Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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)

Respuesta aceptada

Chunru
Chunru el 8 de Jul. de 2022
Editada: Chunru el 8 de Jul. de 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)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by