How do I use markers (i.e. in vector form) to tell the selector block when to select certain parts of a signal?

1 visualización (últimos 30 días)
Hello everyone,
Lets say I have a vector r:
r = [110, 435 978 ... 100240].
r is my vector of markers - it marks certain sample indices/positions of a matrix x:
x = [ 0 0 1 2 -3 0 2 -1 0 ... 0 2 4 -4 -1 -2 4;
2 4 10 6 3 -1 0 2 ... -23 -17 -5 3 0 -1;
-15 -32 -45 -31 -11 ... 43 52 37 13 4;]
Matrix x has 3 rows representing different signals.
My question: How can I use the selector block in Simulink (or any other block or scheme), to extract the 200 samples (columns) of matrix x immediately AFTER every marker of r?
So, the 200 columns of x after column number 110, 435, 978, etc.
Thank you!
Rafael

Respuestas (0)

Categorías

Más información sobre Array and Matrix Mathematics en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by