MATLAB: How to find the top 10% value of the matrix %homework HI, I have a 10×10 matrix and the value is random How do I find the the top 10% value of the matrix? ex: if the value is 1~100,I want to get the answer is 90~100 Thanks~ Best Answer x = the_matrix;[~,idx] = sort(x(:));y = x(idx(1:10)); Related SolutionsMATLAB: Element multiplication- question on multiplying row elements x(:,1:end-1).*x(:,2:end) MATLAB: Finding the 10 lowest values Let's say you have a matrix of 10x10: x=rand (10,10);Sort it by the columns in ascending order: y=sort (x,1, 'ascend')*Now take the 5 first rows - these are the lowest values in every column: z=y(1:5, :) Related QuestionDoes the SORT function return unsorted values in MATLABHow to get permutation of two halves of given numbers range 1 to n separately and then concatenate.Finding largest values in matrixI have 2 random 10×10 Matrices. How do i find the same values in both the matrices. If any one knows please answer.Remove everything outside a defined areaSimple question regarding sorting
Best Answer