フィルターのクリア

My 'From Workspace block' does the wrong value after 10 seconds

2 ビュー (過去 30 日間)
SRK747
SRK747 2017 年 4 月 3 日
回答済み: dbmn 2017 年 4 月 3 日
I'm just using this:
t = 0.2 * [0:49]'; x = sin(t); y = 10*sin(t);
and then using a from workspace block in simulink with [t,x,y]. It only works for 10 seconds

回答 (1 件)

dbmn
dbmn 2017 年 4 月 3 日
That is because your variables t only covers the range from 0.0 - 9.8s (checkout t(end))
So after 9.8s your "From Workspace" Block starts to extrapolate data. What can you do?
  • either add more data in the workspace
  • or change the behaviour of your extrapolation (there is an option called "Form output data after final value by: " in your from workspace block)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by