How to find max of an array avoiding the inf?

135 次查看(过去 30 天)
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?

采纳的回答

Rik
Rik 2019-9-2
max(data(~isinf(data))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by