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?

 Risposta accettata

See the FILTER command

3 Commenti

Using filter(b,a,X,zi)? but how to handle (1/5^n)?
For example,
n=0:10;
X=(n>=0).*(1/5).^n;

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Mathematics in Centro assistenza 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