Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Array plott...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 5638 of 5734
Post > Topic >>

Re: Array plotting and segmentation

by Conor <cmancone@[EMAIL PROTECTED] > Apr 15, 2008 at 07:05 AM

On Apr 14, 12:54 pm, Vince Hradil <hrad...@[EMAIL PROTECTED]
> wrote:
> On Apr 14, 11:47 am, Conor <cmanc...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > On Apr 14, 10:57 am, Vince Hradil <hrad...@[EMAIL PROTECTED]
> wrote:
>
> > > On Apr 14, 9:16 am, moxam...@[EMAIL PROTECTED]
 wrote:
>
> > > > Dear All,
>
> > > > I have the following problem:
>
> > > > I have an array lets say A = [3,4,6,8,3,2,5,7,10,5,4]. As you can
see,
> > > > in this array we have two peaks (8 and 10) and one gap (2). I want
to
> > > > plot this array and draw a line on the gap element (which is in 2)
> > > > vertical on the x axes and parallel to the y axes. In other words,
I
> > > > want to segment the the curve produced by plotting the array by
> > > > drawing a line on the gap element.
>
> > > > Any help will be appreciated.
>
> > > > Thank you very much in advance,
>
> > > > Dabboor
>
> > > Is this what you want:
>
> > > idx = (where(A eq min(A)))[0]
> > > plot, A
> > > plots, [idx,idx], !y.crange
>
> > The slightly quicker way to find the minimum is to just use the second
> > parameter to the min() function:
>
> > minval = min( A, idx )
>
> I always forget that - does it return the first index or an array of
> indexes?

Just the first, unless you use the dimension keyword.




 5 Posts in Topic:
Array plotting and segmentation
moxament@[EMAIL PROTECTED  2008-04-14 07:16:43 
Re: Array plotting and segmentation
Vince Hradil <hradilv@  2008-04-14 07:57:17 
Re: Array plotting and segmentation
Conor <cmancone@[EMAIL  2008-04-14 09:47:12 
Re: Array plotting and segmentation
Vince Hradil <hradilv@  2008-04-14 09:54:37 
Re: Array plotting and segmentation
Conor <cmancone@[EMAIL  2008-04-15 07:05:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:20:28 CDT 2008.