how can I solve difference equation with initial condition.

조회 수: 16 (최근 30일)
Toral Panchal
Toral Panchal 2013년 12월 26일
댓글: Toral Panchal 2013년 12월 26일
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일
See the FILTER command
  댓글 수: 3
Matt J
Matt J 2013년 12월 26일
편집: Matt J 2013년 12월 26일
For example,
n=0:10;
X=(n>=0).*(1/5).^n;

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by