how can I solve difference equation with initial condition.

16 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Matt J
Matt J il 26 Dic 2013
See the FILTER command
  3 Commenti
Matt J
Matt J il 26 Dic 2013
Modificato: Matt J il 26 Dic 2013
For example,
n=0:10;
X=(n>=0).*(1/5).^n;

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by