Discrete time system difference equation

12 ビュー (過去 30 日間)
Usman
Usman 2016 年 2 月 10 日
回答済み: Torsten 2016 年 2 月 11 日
I want to know what is the method to solve such a problem in matlab. Considering a discrete time system difference equation as follows:
How do I compute the value of y @ time k=5. when the input sequence is U=[1 -2 3 -4] and the initial conditions are Y(1)=1 , y(2)=1.
y=??? Please ; I want information regarding such a problem . I searched everywhere but didn't help me properly. If you can explain the steps of the solving it will be very helpful.... Thanks in advance :)

採用された回答

Torsten
Torsten 2016 年 2 月 11 日
u=[1 -2 3 -4];
y(1)=1;
y(2)=1;
for k=2:4
y(k+1)=-2*y(k)+3*y(k-1)+1.5*u(k)+4*u(k-1);
end
y(5)
Best wishes
Torsten.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by