Data extraction from workspace into Simulink
이전 댓글 표시
I am trying to construct a sub block which gets a timeless array, lets say [5 5 0 0 0] and picks the element that I specify (I will pick the first element (index0)).
I defined the vector as tosimulation=[5 5 0 0 0] and named the simin block to tosimulation. I connected it to a selector block to select the first index but the simin block omits the first index. The display block shows only 5 0 0 0 instead of 5 5 0 0 0.
It seems too basic but I couldn't figure out what is the problem.
my conf is the following
- data type: inherit:auto
- sample time: -1
- interpolate data: unchecked
- enable zero crossing detec. : checked
- final data value by: holding final value
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!