Homework 1 - Joseph Murphy Signals & Systems Homework 1...

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

View Full Document Right Arrow Icon
Joseph Murphy January 28 th , 2010 Section 2 Homework 1 1) Code: %Set up a continuous time vector ranging from 0 to 10 in increments of 0.01 t = [0:.01:10] %Define the basic signals to be plotted xa = cos(3*t); xb = sin(4*t); xc = exp(-0.2*t); xd = csc(4*t); %Define the element by element products of two signals xe = xb.*xd; xf = xa.*xc; %Define the element by element sum of two signals xg = xc + xd; %Define the final basic signal xh = tan(3*t); %Plot the figure in a 4x2 window using a common time vector figure(1) subplot(421), plot(t,xa), title( 'signal a(t)' ) subplot(422), plot(t,xb), title( 'signal b(t)' ) subplot(423), plot(t,xc), title( 'signal c(t)' ) subplot(424), plot(t,xd), title( 'signal d(t)' ) subplot(425), plot(t,xe), title( 'signal e(t)' ) subplot(426), plot(t,xf), title( 'signal f(t)' ) subplot(427), plot(t,xg), title( 'signal g(t)' )
Background image of page 1

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

View Full DocumentRight Arrow Icon
subplot(428), plot(t,xh), title( 'signal h(t)' ) Output:
Background image of page 2
2) Code %Open the sound, grabbing the signal, sample rate, and data bits
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/08/2010 for the course ECSE 2010 taught by Professor Millard during the Spring '08 term at Rensselaer Polytechnic Institute.

Page1 / 7

Homework 1 - Joseph Murphy Signals & Systems Homework 1...

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

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