Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.6K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

[?] Find first local minima?

Posted 7 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

Mia,

In addition to Rohit's solution, you can also do:

In[1]:= FindMinimum[Interpolation[data][x], {x, 1}, AccuracyGoal -> 5]

Out[1]= {3., {x -> 6.}}

POSTED BY: Neil Singer
Posted 7 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