How to find max of an array avoiding the inf?

129 vues (au cours des 30 derniers jours)
Zeynab Mousavikhamene
Zeynab Mousavikhamene le 2 Sep 2019
Réponse apportée : Rik le 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by