Matlab: Am and FM Modulation: Experiment Number
Matlab: Am and FM Modulation: Experiment Number
EXPERIMENT NUMBER -
MATLAB: AM AND FM MODULATION
Aim: Generation of AM Signal in MATLAB
Theory:
Pune Vidyarthi Griha’s College of Engineering and Technology Pune‐09
Department of Electronics and Telecommunication Subject: Analog Communication
- Generation of FM in MATLAB:
o In Frequency Modulation, frequency of the carrier is varied with respect to the instantaneous
amplitude of information signal.
o To generate FM, we use inbuilt function fmmod
o fmmod:
Syntax:
y = fmmod(x,Fc,Fs,freqdev) modulates the message signal x using frequency
modulation. The carrier signal has frequency Fc (Hz) and sampling rate Fs (Hz), where Fs
must be at least 2*Fc. The freqdev argument is the frequency deviation constant (Hz) of the
modulated signal.
y = fmmod(x,Fc,Fs,freqdev,ini_phase) specifies the initial phase of the modulated
signal, in radians.
o Example:
% Set the sample rate and carrier frequency. Generate a time vector having a
duration of 0.2 s.
fs = 1000;
fc = 200;
t = (0:1/fs:0.2)';
% create sinusoidal signal
x = sin(2*pi*30*t)+2*sin(2*pi*60*t);
% set frequency deviation to 50Hz
fDev = 50;
% frequency modulation using fmmod
y = fmmod(x,fc,fs,fDev);
Conclusion:
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
Pune Vidyarthi Griha’s College of Engineering and Technology Pune‐09