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!