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?

 Réponse acceptée

Matt J
Matt J le 26 Déc 2013
See the FILTER command

3 commentaires

Using filter(b,a,X,zi)? but how to handle (1/5^n)?
Matt J
Matt J le 26 Déc 2013
Modifié(e) : Matt J le 26 Déc 2013
For example,
n=0:10;
X=(n>=0).*(1/5).^n;
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by