% EE133 Prelab 2 Matlab File
% Generates frequency spectrum plots for FM signals of modulation
% index, Mn

% This program plots 4 frequency spectrum plots on one page. Note that 
% you must have get_fm_spect.m in the same folder as this file or it will
% not work. You can look at the get_fm_spect.m file for details on 
% the exact commands for frequency spectrum plots in Matlab.

m0 = ??;	% You must plug in the correct values here.
m1 = ??;	% m0-m4 are your modulation indices for each case. 
m2 = ??;
m3 = ??;
m4 = ??;
fs = ??;	% modulating signal frequency
fc = ??;	% carrier frequency
Vc = ??;

subplot(3,2,1);
get_fm_spect(fs,fc,Vc,m0);

subplot(3,2,2);
get_fm_spect(fs,fc,Vc,m1);

subplot(3,2,3);
get_fm_spect(fs,fc,Vc,m2);

subplot(3,2,4);
get_fm_spect(fs,fc,Vc,m3);

subplot(3,2,5);
get_fm_spect(fs,fc,Vc,m4);


