ECET 305 SA 6 v2 Discrete Time System MATLAB

# ECET 305 SA 6 v2 Discrete Time System MATLAB - 7.2500...

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

ECET-305 Supplementary Assignment 6 Discrete-Time Difference Equations Use MATLAB to compute the first 10 output values for the following difference equation with the given initial conditions and the given input function. Initial conditions: Input function: where u k is the digital step function. What to turn in : a copy of your MATLAB code and the first 10 values of the sequence y k . >> a=[1,-0.5,1]; >> b=[0,0,1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y' ans = 0 0 2.0000 3.0000 1.5000 -0.2500 0.3750 2.4375 2.8438 0.9844 >> a=[1,-0.5,1]; >> b=[2,1,1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y'

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

View Full Document
ans = 4.0000 8.0000 8.0000 4.0000 2.0000 5.0000 8.5000
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 7.2500 3.1250 2.3125 >> a=[1,-0.5,1]; >> b=[2,1,-1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y' ans = 4.0000 8.0000 4.0000-2.0000-1.0000 5.5000 7.7500 2.3750-2.5625 0.3438 >> a=[1,-5,1]; >> b=[0,0,1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y' ans = 2 12 60 290 1392 6672 31970 153180 >> a=[1,-5,1]; >> b=[2,1,1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y' ans = 4 26 134 652 3134 15026 72004 345002 1653014 7920076 >> a=[1,-5,1]; >> b=[2,1,-1]; >> x=[2,2,2,2,2,2,2,2,2,2]; >> y=filter(b,a,x); >> y' ans = 4 26 130 628 3014 14446 69220 331658 1589074 7613716...
View Full Document

## This note was uploaded on 01/09/2012 for the course ECET 305 taught by Professor Unknown during the Fall '11 term at DeVry Addison.

### Page1 / 3

ECET 305 SA 6 v2 Discrete Time System MATLAB - 7.2500...

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

View Full Document
Ask a homework question - tutors are online