How to find max of an array avoiding the inf?

129 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019 年 9 月 2 日
回答済み: Rik 2019 年 9 月 2 日
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 Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by