I've never asked questions about matlab on this site, and I'm not into matlab, but I have to create model in simulink. Can someone help me how to create simulink model that will describe this equation:
8y(k+2) - 5y(k+1) + y(k) = 2u(k)
y(o)= 0 ; y(1) = 0 ; u(k) = 1(k)
Thanks.
So assuming that
kis the time step,u(k)the input andy(k)the output at time stepk, your system would be accusal as you want to knowy(k+2)at time stepk.So I assume you might mean
(k-2)instead, which you can realize with a1/z^2block (1/zfor(k-1)) of the input plus the gains you have for each y. Your output would be theny(k) = 2*u(k) - 8*y(k-2) + 5*y(k-1)and the
y(0)andy(1)are the initial conditions for the1/zblocks