I need to find local minima's in a graph(2-dimensional ) without curve fitting ; I have the F(x) and x values only
Mostrar comentarios más antiguos
I have simulated data it gives the output and i need to find the position at which local minimum's occur also where maxima's occour too , to calculate the height of each peak
Respuestas (2)
Shashank Prasanna
el 20 de Jun. de 2013
0 votos
Alan Weiss
el 20 de Jun. de 2013
Editada: Alan Weiss
el 20 de Jun. de 2013
x = randn(10,2); % random 2-D x locations
y = 5*randn(10,1)+20; % random heights at the x locations
[maxy,r] = max(y); [miny,s] = min(y); % places where the extrema occur
maxpt = x(r,:)
minpt = x(s,:)
If you want to interpolate your data and optimize it that way, and you have Global Optimization Toolbox, see the example Pattern Search Climbs Mount Washington.
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Problem-Based Optimization Setup en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!