how can I solve difference equation with initial condition.

16 Ansichten (letzte 30 Tage)
Toral Panchal
Toral Panchal am 26 Dez. 2013
Kommentiert: Toral Panchal am 26 Dez. 2013
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
See the FILTER command
  3 Kommentare
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;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help 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