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

Thread Subject:
4 minimum values in a vector

Subject: 4 minimum values in a vector

From: angelina

Date: 22 Feb, 2013 17:38:05

Message: 1 of 3

hi everyone!
I want to make a question!
In a vector how can I find the local minima??
For example in a vector with 24 values I want to find the 3 minimum values and where they are! something like the findpeaks that there is for maxima!
Thanks!!!!!!!!1

Subject: 4 minimum values in a vector

From: dpb

Date: 22 Feb, 2013 17:39:55

Message: 2 of 3

On 2/22/2013 11:38 AM, angelina wrote:
> hi everyone!
> I want to make a question!
> In a vector how can I find the local minima??
> For example in a vector with 24 values I want to find the 3 minimum
> values and where they are! something like the findpeaks that there is
> for maxima!
> Thanks!!!!!!!!1

Just negate the input vector and use findpeaks...

--

Subject: 4 minimum values in a vector

From: angelina

Date: 23 Feb, 2013 08:41:08

Message: 3 of 3

dpb <none@non.net> wrote in message <kg8ah0$dqj$1@speranza.aioe.org>...
> On 2/22/2013 11:38 AM, angelina wrote:
> > hi everyone!
> > I want to make a question!
> > In a vector how can I find the local minima??
> > For example in a vector with 24 values I want to find the 3 minimum
> > values and where they are! something like the findpeaks that there is
> > for maxima!
> > Thanks!!!!!!!!1
>
> Just negate the input vector and use findpeaks...
>
> --Thanks a lot!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us