How to find max of an array avoiding the inf?

117 views (last 30 days)
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?

Accepted Answer

Rik
Rik on 2 Sep 2019
max(data(~isinf(data))

More Answers (0)

Categories

Find more on Data Preprocessing in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!