MATLAB: To find position of min value minimum value position i have sm array, i calculate minimum value of this array, now i want to know, the position of this minimum value in existing array. pls help Best Answer A - your array;[v1,ii] = min(A);[v2,jj] = min(v1);out = [v2,ii(jj),jj];or[v3,ij] = min(A(:));[i1,j1] = ind2sub(size(A),ij);out = [v3,i1,j1]; Related SolutionsMATLAB: How to know the location of the minimun value from a vector A = [0.2008 0.2011 0.2011 0.1979 0.2003][c,idx] = min(A)for matrixeg:A = rand(8);solution:[vc,irows] = min(A);[v,icols] = min(vc);out = [v irows(icols) icols];or:v = min(A(:));[irows,icols] = find(A == v);or:[v,ii] = min(A(:));[irows,icols] = ind2sub(size(A),ii); MATLAB: Question about min and max google bubblesort and choose which element satisfies your need , hint: ascending and descending Related QuestionThe dimension of matrix minimumHow to set bar beginning valueMin to Max in MatLabSet min and max value for the color bar on a scriptHow can i display a vector as a result of a for loopCan’t I store this many values In line
Best Answer