Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

helppp on finding maximum

Asked by Leah

Leah (view profile)

on 10 Jul 2012

If there are two peaks and you want to find the second peak's highest point how do you find that? how do you set limitations between the highest peaks? and after finding that peak how do you find the x position of it? by writing a code. i need to be able to do it without having the user use any tools for the graph

0 Comments

Leah

Leah (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Wayne King

Wayne King (view profile)

on 10 Jul 2012

Hi Leah, if you have the Signal Processing Toolbox, have you tried findpeaks()?

You can set options like the minimum distance between peaks, and minimum height.

The optional output argument LOCS gives you the "x" position of the peaks.

1 Comment

Leah

Leah (view profile)

on 10 Jul 2012

how do i use findpeaks() if i only have the plotted graphs?

Wayne King

Wayne King (view profile)

Contact us