I have a 169×1 array containing start indexes (array A). I have a 169×1 array containing stop indexes (array B). I have a 22394×2 matrix containing data (matrix C). I want to create a new matrix (matrix D) containg only data from Matrix C that is between the start and stop indexes from Matrix A and B (including the start and stop locations). For example, C(A(1,1):B(1,1),1) would be the first range of numbers in matrix D, C(A(2,1):B(2,1),1) would be the second range of numbers in matrix D, C(A(3,1):B(3,1),1) would be the third range of numbers in matrix D, etc. Any help is much appreciated. Thanks!
MATLAB: Iterate through indexes creating a new matrix
for loopindex
Related Question
- Divide an array in n different arrays
- How to get combination of elements in a matrix in pair order
- EASY Question: How to find an element of a matrix
- Hi i have a question for example I have these two matrices a and b and I want to join them in one, how could I do that
- How to find the Reverse process of A(B).
- Joining two columns in a way of row by row
- Is it possible to extract the values with a vector of indices for each row without using the for statement from the matrix
Best Answer