How to find indices of values that are fraction of the maximum value

Hello,
I am trying to find the indices of those values in the vector that are within the certain fraction of the maximum value of the matrix. For example, if my vector is x, then I can find the maximum value m and its location index I\ind using the following command:
[m, ind] = max(x);
Now, I want to find the location of all those values that are greater than a certain fraction, say 95%, of the maximum value m. Is there a way to do this?
Any help would be greatly appreciated.
Regards, Anindya

추가 답변 (1개)

Anindya G
Anindya G 2015년 7월 28일

0 개 추천

Thanks Matt J! It was simpler than I thought!

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

질문:

2015년 7월 28일

답변:

2015년 7월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by