필터 지우기
필터 지우기

How can i know the abscissa of the maximum of a curve ?

조회 수: 3 (최근 30일)
Mallouli Marwa
Mallouli Marwa 2016년 10월 20일
답변: John D'Errico 2016년 10월 20일
Hi
I have a curve Amplitude=f(frequency) and i want to know the abscissa of the maximum.
Please help me.
  댓글 수: 2
Adam
Adam 2016년 10월 20일
Isn't the abscissa just the y-axis value of your function - i.e. Amplitude?
So just run your function and call
max( Amplitiude )
on the result.
John D'Errico
John D'Errico 2016년 10월 20일
Adam - Sorry, but no. Back to grade school for this.
https://en.wikipedia.org/wiki/Abscissa
The y axis is the ordinate, not the abscissa.

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

답변 (1개)

John D'Errico
John D'Errico 2016년 10월 20일
So you have a function of a single variable, and you need to know the location of the min.
If you have the function itself, then use fminbnd.
If you have only data points, thus (x,y) pairs, then use min. It returns the index of the minimum value(look at the second output argument), then use that index on the vector of x values.
If you want to find a minimum on data points, but you need an interpolated minimum, then you can use fminbnd on a spline fit. Don't expect it to be very good though.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by