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

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;

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

질문:

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