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?

 採用された回答

Matt J
Matt J 2013 年 12 月 26 日

1 投票

See the FILTER command

3 件のコメント

Toral Panchal
Toral Panchal 2013 年 12 月 26 日
Using filter(b,a,X,zi)? but how to handle (1/5^n)?
Matt J
Matt J 2013 年 12 月 26 日
編集済み: Matt J 2013 年 12 月 26 日
For example,
n=0:10;
X=(n>=0).*(1/5).^n;
Toral Panchal
Toral Panchal 2013 年 12 月 26 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

製品

質問済み:

2013 年 12 月 26 日

コメント済み:

2013 年 12 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by