MATLAB: Reverse indexing with conditions indexing Let A = [1 2 4 6 10], I want to find the indices of the matrix for which the element less than 5. So if I say: A < 5, then it will return [1 1 1 0 0]. How can I proceed to get the index of all those 1's? Thanks Best Answer idx = 1:numel(A);mask = A < 5;idx = idx(mask); Related SolutionsMATLAB: Find largest magnitude in array A=[-0.1;1;-5;-0.8;-0.4];tto=find(abs(A) == max(abs(A)))tt=find(abs(A) ~= max(abs(A))) MATLAB: Reverse matrix position Accessing row values in the reverse order will get you there:x(end:-1:1,:) Related QuestionHow to use all the other indices except of the ones given in an arrayReverse-Engineering Find FunctionMatrix IndexingReverse of NormalizationQuick Question! Get the IndexHow to reverse “sort”
Best Answer