Simulating linear systems with nonuniform time vector

13 ビュー (過去 30 日間)
Paolo Rapisarda
Paolo Rapisarda 2022 年 6 月 28 日
コメント済み: Paolo Rapisarda 2022 年 6 月 28 日
Hello,
I want to simulate a state-space model (A,B,C,D) of the kind generated by the ss command in the Control Toolbox, but with a non-uniformly spaced time vector. The lsim command does not work, since it requires evenly spaced time samples.
Would you be able to suggest a way of generating state- and output values for this case?
Thank you in advance!

採用された回答

Sam Chak
Sam Chak 2022 年 6 月 28 日
I think you can possibly use the 1-D data interpolation technique, interp1() function at certain intervals of the query time points. For example
xq = interp1(t, x, tq, 'cubic')
For more info, please check other methods.
  1 件のコメント
Paolo Rapisarda
Paolo Rapisarda 2022 年 6 月 28 日
Excellent idea, thank you very much Sam!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by