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!