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

10 views (last 30 days)
Mallouli Marwa on 20 Oct 2016
Answered: John D'Errico on 20 Oct 2016
Hi
I have a curve Amplitude=f(frequency) and i want to know the abscissa of the maximum.
##### 2 CommentsShowHide 1 older comment
John D'Errico on 20 Oct 2016
https://en.wikipedia.org/wiki/Abscissa
The y axis is the ordinate, not the abscissa.

John D'Errico on 20 Oct 2016
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.

### Categories

Find more on Interpolation in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by