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:
cut some data

Subject: cut some data

From: Konst

Date: 5 May, 2012 16:51:23

Message: 1 of 4

I have to vectors x,y and I use plot (x,y) and it draws something like a gaussian bell which is ok. But then I want to keep only the data from the top of the bell and afterwards in my two vectors. Do you know how can I do this?
Thanks in advance!

Subject: cut some data

From: dpb

Date: 5 May, 2012 19:15:34

Message: 2 of 4

On 5/5/2012 11:51 AM, Konst wrote:
> I have to vectors x,y and I use plot (x,y) and it draws something like a
> gaussian bell which is ok. But then I want to keep only the data from
> the top of the bell and afterwards in my two vectors. Do you know how
> can I do this?
> Thanks in advance!

doc max % comes to mind

Note optional return value; it'll undoubtedly be of interest...

--

Subject: cut some data

From: Konst

Date: 5 May, 2012 19:37:25

Message: 3 of 4

dpb <none@non.net> wrote in message <jo3u8i$s8g$1@speranza.aioe.org>...
> On 5/5/2012 11:51 AM, Konst wrote:
> > I have to vectors x,y and I use plot (x,y) and it draws something like a
> > gaussian bell which is ok. But then I want to keep only the data from
> > the top of the bell and afterwards in my two vectors. Do you know how
> > can I do this?
> > Thanks in advance!
>
> doc max % comes to mind
>
> Note optional return value; it'll undoubtedly be of interest...
>
> --
>
I don't understand this. Can you explain it a little more?Thanks for your answer anyways!

Subject: cut some data

From: dpb

Date: 5 May, 2012 21:25:20

Message: 4 of 4

On 5/5/2012 2:37 PM, Konst wrote:
> dpb <none@non.net> wrote in message <jo3u8i$s8g$1@speranza.aioe.org>...
>> On 5/5/2012 11:51 AM, Konst wrote:
>> > I have to vectors x,y and I use plot (x,y) and it draws something
>> like a
>> > gaussian bell which is ok. But then I want to keep only the data from
>> > the top of the bell and afterwards in my two vectors. Do you know how
>> > can I do this?
>> > Thanks in advance!
>>
>> doc max % comes to mind
>>
>> Note optional return value; it'll undoubtedly be of interest...
>>
>> --
>>
> I don't understand this. Can you explain it a little more?Thanks for
> your answer anyways!

Where will the point at which you want to start saving the data be?
Wouldn't it be at the max of the bell curve?

--

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