Frequency modulation by MATLAB

조회 수: 5 (최근 30일)
adnan
adnan 2011년 1월 27일
I hope to write a program in MATLAB to plot the output of the following function in time domain
s(t) = A sum ( J(B) cos((Wc-n.Wm).t )
where
  • A is a constant = 1
  • J Bessel function of B
  • B = 10 (modulation index)
  • Wc = 1000000 carrier frequency
  • Wm = 1000
  • Limits of summation n = -20 to 20
Hint: all values above changeable

답변 (1개)

Vieniava
Vieniava 2011년 1월 27일
From the top of my head:
Fc=1e6; % carrier 1MHz
Fm=1e3; % single tone - 1kHz
fs=2.2*Fc; % sampling frequency (Nyquist limitation!)
t=0:1/fs:1;
Y=zeros(1,length(t));
for n=-20:20
Y=Y+besselj(n, B).*cos( 2*pi*(Fc-n*Fm).*t);
end
Should work (right now I can't vertify this code - lack of Matlab)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by