Exacting a constant range/window of values from a matrix (skipping one cell each time).
조회 수: 1(최근 30일)
표시 이전 댓글
Matt 2022년 10월 27일
답변: RAGHUNATHRAJU DASHARATHA 2022년 10월 27일
I have a variable of values, X (1000 x 1) and want to create a separate variable, Y which is made up from values 1:24, skip one cell, then the next 24 values, skip one cell etc etc. until a certain value or the end of the matrix.
I feel like it should be reltively simple but just can't seem to quite get it right. Any help would be much appreciated.
Thanks in advance.
댓글 수: 1
Each cell element consist of 24x1 values, the good way to handle multiple array is using cell array, as shown in the code.
RAGHUNATHRAJU DASHARATHA 2022년 10월 27일
As per my understanding you want to skip every 25th value of a matrix.
I will try to explain it using an example below .
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!