Finding Maximum Value In Array
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have an array where the first row is data, and the second row is frequency, I also have a graph of this data versus frequency. I want to find the maximum values of this data, as it spikes at certain frequencies, and the frequency associated with these maximums. I can't work out how to do it at all. a is the data. NEWF is the frequency.
array = [a;NEWF]
Any advice?
Thanks, Chris.
댓글 수: 0
답변 (2개)
Sean de Wolski
2013년 3월 18일
편집: Sean de Wolski
2013년 3월 18일
doc max
Look at both output arguments. The second one, index, will tell you where to grab from.
댓글 수: 0
Image Analyst
2013년 3월 18일
If you have multiple peaks, try findpeaks() in the Signal Processing Toolbox, or imregionalmax() in the Image Processing Toolbox. If you don't have either toolbox, check the File Exchange.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!