How to find max of an array avoiding the inf?

129 Ansichten (letzte 30 Tage)
Zeynab Mousavikhamene
Zeynab Mousavikhamene am 2 Sep. 2019
Beantwortet: Rik am 2 Sep. 2019
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?

Akzeptierte Antwort

Rik
Rik am 2 Sep. 2019
max(data(~isinf(data))

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by