how can I solve difference equation with initial condition.

14 vues (au cours des 30 derniers jours)
Toral Panchal
Toral Panchal le 26 Déc 2013
Commenté : Toral Panchal le 26 Déc 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?

Réponse acceptée

Matt J
Matt J le 26 Déc 2013
See the FILTER command
  3 commentaires
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;
Toral Panchal
Toral Panchal le 26 Déc 2013
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center 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