How can I use starting and ending index to select from a VARIABLE size vector, in simulink?

3 visualizaciones (últimos 30 días)
For a fixed size vector one can select a part of the vector by start and ending index. But for a variable size vector this does not work. I can only select the 1st element (by applying as index vector [1,1]). If I apply index vector [1,2], the following error pops up:
The second element, 2, at input port Idx1 in 'untitled4/Selector' is not within the range of permissible values (1 through 1) that allows selection of a valid input data element

Respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by