Message Boards Message Boards

0
|
1989 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[?] Find first local minima?

Posted 5 years ago

Dear All,

I have a list as following (for example)

data = {10,8,7,6,5,3,4,5,2,3,2,1,0}

The first local minima is 3.

How can I find this value in Mathematica ?

Thank so much for your help.

POSTED BY: Mia Linda
2 Replies
POSTED BY: Neil Singer
Posted 5 years ago
-FindPeaks[-data][[1, 2]]
(* 3 *)
POSTED BY: Rohit Namjoshi
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