how can I solve difference equation with initial condition.

Consider a difference equation with its initial conditions.
5y(n)+y(n-1)-3y(n-2) = (1/5^n)u(n), n>=0 y(n-1) = 2, y(n-2) = 0
How can I determine y(n) in matlab?

 Akzeptierte Antwort

Matt J
Matt J am 26 Dez. 2013

1 Stimme

See the FILTER command

3 Kommentare

Using filter(b,a,X,zi)? but how to handle (1/5^n)?
Matt J
Matt J am 26 Dez. 2013
Bearbeitet: Matt J am 26 Dez. 2013
For example,
n=0:10;
X=(n>=0).*(1/5).^n;
Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by