필터 지우기
필터 지우기

How to find the X value that corresponds to the peak Y value from a set of plots?

조회 수: 49 (최근 30일)
Hi,
I have 100 output curves, and I would like to pick the value of X that corresponds to the maximum Y value. X and Y values are obtained in separate files. I have attached herewith three sets of curves, X1, X2, and X3 for Y1, Y2 and Y3. The Y-axis values is the sum of values from column 2 to 11 in Y files.
I would be grateful if anyone can help me in this regard. Please, let me know if my question is not clear enough.
Thank you very much. Regards, Ismail

채택된 답변

KSSV
KSSV 2017년 11월 10일
[maxvaly,idx] = max(y) ;
maxvalx = x(idx) ;
where x and y are you data.
  댓글 수: 6

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by