- 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)
My 'From Workspace block' does the wrong value after 10 seconds
조회 수: 1 (최근 30일)
이전 댓글 표시

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
댓글 수: 0
답변 (1개)
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?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!