Assignment 5 Soln

# Assignment 5 Soln - figure showspec(mm,8000 title'Message...

This preview shows pages 1–8. Sign up to view the full content.

1 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011 ECSE 304 Signals and Systems II Winter Semester 2011 Assignment 5 : Solutions Richard Rose McGill University Dept. of Electrical and Computer Engineering

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011
3 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011 Problem 3: Problem 4:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011 Problem 4:
MatLab Exercises: Problem M-1: a) () ( ) ( ) () () ( ) ( ) () () () () () t f f A t f f A t f t f t f A t f t f t f A t x m c m c c c m c c m + + + = + = + = π 2 cos 2 2 cos 2 2 cos 2 cos 2 cos 2 cos 2 cos 2 cos 1 b) % (b) %%%%% (i)-The carrier Fc = 1200; Fs = 8000; Ts = 1/Fs; t = 0:Ts:1 cc = cos(2*pi*Fc*t); %%%%% (ii)-The message signal Fm = 100; t = 0:Ts:1 mm = 0.8*cos(2*pi*Fm*t); %%%%% The AM signal aa = (1 + mm).* cc; c) % (c) figure hold on plot(aa(1:200)) plot(mm(1:200), '-.r' ); title( 'The modulated and message signals' ); hold off

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
d) % (d) figure showspec(cc,8000); title( 'Carrier Signal Spectrum'

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ); figure showspec(mm,8000); title( 'Message Signal Spectrum' ); figure showspec(aa,8000); title( 'Modulated Signal Spectrum' ); Problem M-2 : a) %%%%% (i) dd = aa.* cc; figure showspec(dd,8000); title( 'Spectrum of Modulated Signal Multiplied by the Carrier' ); %%%%% (ii) b = [ 1 -2*cos(2*pi*2400/8000) 1]; a = 1; omega = -pi:pi/200:pi; notchf = freqz(b, a, omega); figure plot (omega*8000/(2*pi), abs(notchf)); title ( 'Frequency Response of the Notch Filter' ); %%%%% (iii) ff = filter(b, a, dd); figure subplot(2,1,1); plot(ff(1:200)); title( 'The Demodulated Signal' ); subplot(2,1,2); plot(mm(1:200)); title( 'The Message Signal' ); %(b) figure; showspec(ff, 8000); title( 'Demodulated Signal Spectrum' ); % (c) ff2 = filter(b, a, ff); figure showspec(ff2, 8000); title( 'Spectrum of Refiltered Demodulated Signal' );...
View Full Document

{[ snackBarMessage ]}

### Page1 / 8

Assignment 5 Soln - figure showspec(mm,8000 title'Message...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online