필터 지우기
필터 지우기

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