MATLAB: Extract column index of a particular values in the matrix

extract column indicesfind column index based on conditionmatrix

Hi,
I got 1 x 10000 matrix named x1 (attached here), I intend to extrcat the indices of the colum which got the values in the range of 500 to 550.. Is there away to extract the indices of the column based on criteria…

Best Answer

B = x1(x1 <= 550 & x1 >= 500);