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

4 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by