MATLAB: Minimum of an array minimum of array Hi, I have a 10*10 array.I need to find the minium of all the rows of the array except selected ones.For eg. to find the minimum of the array except 2nd and fifthrow. Best Answer r = [1 3 5];A1 = A;A1(r,:) = nan;[c,idx] = min(A1(:));[i1,j1] = ind2sub(size(A1),idx); Related SolutionsMATLAB: How to calculate the index of minimum value in each column cell array Mohammad, use cell2mat() to convert the cell array to an ordinary array (e.g. A) and then use[val,loc] = min(A,[],1) MATLAB: How to look for minimum value in a vector from backwards A = [5 6 4 1 1 1];A_min = min(A);idx = find(A == A_min,1,'last')Also[A_min,idx] = min(fliplr(A));idx = numel(A) - idx + 1 Related QuestionHow Can i sum same values in an arry untill it change to a diffrent number and sum these aswellHow to convert a char into doubleI get Error while reading CSV file.The minimum value of a matrix array and its index
Best Answer