Passing piecewise-constant vector to Simulink
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to pass a piecewise-constant vector to my Simulink model but I do not know how to generate and use it in Simulink. To be more clear, I want to pass a vector like in the figure below containing the time steps and the values of "u" in each time step. I would really appreaciate it if someone could help me.

0 件のコメント
回答 (1 件)
Fangjun Jiang
2019 年 2 月 4 日
There are many ways. The easiest is to define time t=[t1, t2,...t5] and a=[a1,a2,...a5] in workspace and then use the "From Workspace" block, specify data as [t;a].' and do not intoperlate data.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!