필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to extracts each index for each maximum value?

조회 수: 1 (최근 30일)
Saifuddin Chowdhury
Saifuddin Chowdhury 2014년 2월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
[value index]=max() give only one maximum value and a index. But i need a code that gives each maximum value and their index in both time and frequency domain. how do it?

답변 (1개)

Walter Roberson
Walter Roberson 2014년 2월 10일
value = max(YourVector);
allindex = find(YourVector == value);
A maximum in the time domain is present in all frequencies.
I wonder if you are looking for peaks rather than maximums ?

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by