How to find max of an array avoiding the inf?

129 visualizaciones (últimos 30 días)
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 2 de Sept. de 2019
Respondida: Rik el 2 de Sept. de 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?

Respuesta aceptada

Rik
Rik el 2 de Sept. de 2019
max(data(~isinf(data))

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by