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!