MATLAB: How to find max of an array avoiding the inf infmax I have an array of numbes in which some of them are inf. I want to find the largest number among non-inf numbers. Any suggestion? Best Answer max(data(~isinf(data)) Related SolutionsMATLAB: How to find biggest element of the array max(A(:)) MATLAB: Does this showing inf Look at the value of 1\n .Are you certain that you intended to use Matrix Left Divide rather than ./ ? Related QuestionDetermination between Inf and -InfHow to avoid infHow to set all non-finite elements of a matrix to the minimum of the corresponding columnMax
Best Answer