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

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by