How can I simulate a difference equation in Simulink?

3 visualizzazioni (ultimi 30 giorni)
Abraham
Abraham il 8 Ott 2013
Risposto: cr il 8 Ott 2013
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?

Risposte (1)

cr
cr il 8 Ott 2013
Use N delay blocks in tandem to create y(n-N).

Categorie

Scopri di più su General Applications in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by