Chap2_difference_eq_sol

Chap2_difference_eq_sol - n ) ylabel( y[n] ) y(1:5) % c)...

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
% a) a=.5; b=[0 2]; n = 0:30; y0 = 0; x0 = 0; x = zeros(size(n)); x(1) = 1; y=recur(a,b,n,x,x0,y0); subplot(221),stem(n,y) title( ’1a)’ ) xlabel( ’n’ ) ylabel( ’y[n]’ ) y(1:5) % displays y for n=0 to 5, used to double-check hand answers % b) a=2; b=[0 2]; n = 0:30; y0 = 0; x0 = 0; x = zeros(size(n)); x(1) = 1; y=recur(a,b,n,x,x0,y0); subplot(222),stem(n,y) title( ’1b)’ ) xlabel(
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n ) ylabel( y[n] ) y(1:5) % c) a=[1.2 .32]; b = [1 -1]; y0 = [1 2]; x0 = 0; x = ones(size(n)); y=recur(a,b,n,x,x0,y0); subplot(223),stem(n,y) title( 1c) ) xlabel( n ) ylabel( y[n] ) y(1:5) 10 20 30-1 1 2 1a) n y[n] 10 20 30-1.5-1-0.5 0.5 1 x 10 9 1b) n 10 20 30-2-1 1 2 1c) n...
View Full Document

This document was uploaded on 10/24/2010.

Page1 / 3

Chap2_difference_eq_sol - n ) ylabel( y[n] ) y(1:5) % c)...

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

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