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

2 次查看(过去 30 天)
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)

采纳的回答

Chunru
Chunru 2022-7-8
编辑:Chunru 2022-7-8
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by