Message Boards Message Boards

0
|
7120 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Why is the FindPeaks function returning every data point in the table?

Posted 9 years ago

Hi guys! So I am trying to use the FindPeaks function to find the maxima of this data set: See: fig

But when I run FindPeaks, I get a list of every data point that was graphed...Fig

Does anyone else have this problem or know how to fix it?

Sorry if this is obvious to others, I just started using Mathematica yesterday. Thanks in advance!!

POSTED BY: Alicia Wadsworth
Posted 9 years ago

If you look at the help page for FindPeaks and click on the "Details and Options" it shows that the data must be in the form of {y1,y2,y3...} or some more complicated forms and not in the form {{x1,y1},{x2,y2},{x3,y3}...}

If you tried FindPeaks[Map[Last, OvT]] then that would discard the x, give you the y and FindPeaks might then work for you.

POSTED BY: Bill Simpson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract