Assignment 5 Soln

Assignment 5 Soln - ); figure showspec(mm,8000); title(...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011
Background image of page 2
3 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011 Problem 3: Problem 4:
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Assignment 5 - Solutions ECSE304 Signals and Systems II, Winter, 2011 Problem 4:
Background image of page 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
Background image of page 5

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

View Full DocumentRight Arrow Icon
d) % (d) figure showspec(cc,8000); title( 'Carrier Signal Spectrum'
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
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

Page1 / 8

Assignment 5 Soln - ); figure showspec(mm,8000); title(...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online