필터 지우기
필터 지우기

Plot the power function P(x)=sinc^2(x)(mW) from -5πx5π

조회 수: 42 (최근 30일)
Brooks Nelson
Brooks Nelson 2018년 2월 6일
댓글: Walter Roberson 2018년 2월 6일
I am using the following.
x=-5*pi:pi/100:5*pi;
mW=0:.02:1;
P= sinc^2*(x)*(mW); <--- I get an error hear
I am supposed to ignore the divide by zero warning.
Plotting the power in mW from 0 to 1mW.
Plotting the power in dBm from -30 to 0dBm.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 6일
sinc = randn(); %you did not define it
P = sinc^2*(x.')*(mW);
plot(x, P)
Somehow I doubt you will be pleased with the output.
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 2월 6일
I wonder if you were trying to indicate
P = sinc(x).^2 .' * mW;
plot(x, P)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by