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 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