I have a matrix and I am actually interested in obtaining a vector that will consist of the first column in each row that has values lower 3. e.g if I have A=[ 5 7 8 3 2 ;6 2 1 4 4;1 2 3 4 5; 4 5 2 1 3]. I expect an Ans: [5;2;1;4]
MATLAB: I have a matrix and I am actually interested in obtaining a vector that will consist of the first column in each row that has values lower certain value.
findfirst
Best Answer