MATLAB: Find value close to zero in array arraymatrix array Hey everybody, I have an array (44×5) with number between -85.95 and 85.95, and I would like to find the value which is close to Zero in the columns 3 & 4 Best Answer [~,location]=min( abs( yourArray(:,3:4) ) ) Related SolutionsMATLAB: How to find number in a matrix and output its row number M = [83 82 86 84 85 90].'M = 6×1 83 82 86 84 85 90 [row, column] = find(M == 85)row = 5column = 1 MATLAB: How find non zero >> A = [ 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0];>> fun = @(n)find(A,1)-(n:-1:1);>> fun(2)ans = 6 7>> fun(5)ans = 3 4 5 6 7 Related QuestionThe most close approximation to zeroHow to find the column of maximum values of a maxtrixFind zeros in interval
Best Answer