Question

Complete using matlab5. A msg m(t) that is used too modulate a carrier and frequency (fc) is 1500 in a FM system. Kf is 80. Plot the FM signal in

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB code is given below in bold letters.

clc;
close all;
clear all;

% define the parameters as below
fc = 1500; t0 = 0.25;
kf =80; ts = 0.0001; fs = 1/ts;

% define time vector
t = 0:ts:t0-ts;

% define m(t)
m = abs(3.5*sin(2*pi/t0*t));

% compute integral of m(t)
int_m(1) = 0;
for k =1:length(m)-1
int_m(k+1) = int_m(k) + m(k)*ts;
end

% now plot m(t) and it's integral
figure;
plot(t,m,'linewidth',2);grid on;xlabel('time');ylabel('Amplitude');
title('m(t)');ylim([-0.5 4]);


% now define fm signal as follows
u = cos(2*pi*fc*t + 2*pi*kf*int_m);

% plotting the FM signal
figure;
plot(t,u);
grid on;xlabel('time');ylabel('Amplitude');
title('FM :u(t)');%ylim([-1.2 1.2]);

% frequency spectrum of m(t)
N = nextpow2(length(m));
X = fftshift(fft(m,2^N));
X = 2* X / length(m);
k = -(length(X)-1)/2:1:length(X)/2;
f = k/length(X) * fs;
figure;subplot(211);plot(f,abs(X));grid;
xlabel('Frequency in Hz');%xlim([-500 500]);
ylabel('Amplitude');
title('Double sided Magnitude spectrum of m(t)');

% frequency spectrum of u(t)
N = nextpow2(length(u));
X = fftshift(fft(u,2^N));
X = 2* X / length(u);
k = -(length(X)-1)/2:1:length(X)/2;
f = k/length(X) * fs;
subplot(212);plot(f,abs(X));grid;
xlabel('Frequency in Hz');%xlim([-500 500]);
ylabel('Amplitude');
title('Double sided Magnitude spectrum of u(t)');

m(t) 4 3.5 3 2.5 E 1.5 0.5 0 0.5 0.1 0.05 0.25 0 0.15 0.2 timeFM :u(t) 0.8 0.6 0.4 ” 0.2 0.2 -0.4 0.6 0.8 -1 0 0.05 0.1 0.15 0.2 0.25 timeble sided Magnitude spectrum of Doub m(t) 4 1500 -1000 500 500 1000 500 2000 Frequency in Hz Double sided Magnitude spectrum

Add a comment
Know the answer?
Add Answer to:
5. A msg m(t) that is used too modulate a carrier and frequency (fc) is 1500 in a FM system. Kf i...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT