How to find max of an array avoiding the inf?

129 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Rik
Rik il 2 Set 2019
max(data(~isinf(data))

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by