comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Problem on where function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problem on where function [message #68869 is a reply to message #68818] Tue, 01 December 2009 02:18 Go to previous message
Andi Walther is currently offline  Andi Walther
Messages: 5
Registered: March 2009
Junior Member
res = arr[index[n_elements(index)-1]]

On 1 Dez., 11:13, ali mozafari <a.mozafari1...@googlemail.com> wrote:
> Hi
> I  used where function to extract from one array a property. Like
> this:
> Index=where(arr gt th)
> Th is a threshold
> Now arr[index[0]] give us the first member with the specified
> threshold. My problem is I can’t find the end member. I used something
> like this:
> Print, arr[n_elements[index]]
> But it’s give me wrong answer.
> Could somebody help me for this?
> A.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Headless build
Next Topic: match_3d.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 20:56:34 PDT 2025

Total time taken to generate the page: 0.55851 seconds