Data extraction from workspace into Simulink
Mostrar comentarios más antiguos
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
Respuestas (0)
Categorías
Más información sobre String en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!