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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!