How can I simulate a difference equation in Simulink?

조회 수: 3 (최근 30일)
Abraham
Abraham 2013년 10월 8일
답변: cr 2013년 10월 8일
I have solved a difference equation, and now I need to "verify my solution using Simulink".
The difference equation is y[n+2] + 3y[n+1]+2y[n] = 0 with initial conditions y[-1]=0 and y[-2]=1
The solution I got was y[n] = 2(-2)^n - (-1)^n.
How do I take this information and put it in Simulink?

답변 (1개)

cr
cr 2013년 10월 8일
Use N delay blocks in tandem to create y(n-N).

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by