MATLAB: How to find indices of a vector within a matrix indiceslocatelocationMATLABmatrixvaluesvector Hi, I have a vector that contains three values and I want to to locate their indices in a bigger matrix thanks in advance. Best Answer The documentation describes it better than I can.See Intersection of Two Vectors and Their Indices. Related SolutionsMATLAB: Arrange indices [ii,ii] = sort(r(3:3:end));out = reshape(r(bsxfun(@plus,ii*3,(-2:0)')),1,[]);OR:out = reshape(sortrows(reshape(r,3,[])',3)',1,[]); MATLAB: How to find indices of values that are fraction of the maximum value ind=find(x>=.95*max(x)); Related QuestionIntegrating IndicesHow to get the index of the first non-zero element in an 1-D array in SIMULINKReplace Only Certain Values within a Matrix Based on Indices from AnotherObtaining sparse matrix indicesHow to find the index in a row vector where a number exceeds a certain valuePicking indices randomly
Best Answer