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 #68792] Thu, 03 December 2009 01:24 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On 2 Dez., 12:15, "M. Katz" <MKatz...@yahoo.com> wrote:
> You can also use the count argument in where.
>
> Index = where(arr GT th, count)
>
> arr[count-1] is the last element.
> Having count also lets you test for the case where there are no
> results.
>
> if (count GT 0) then begin
>   ...
> endif

I think arr[index[count-1]] is the last element. is't it?
[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: Wed Oct 08 19:13:36 PDT 2025

Total time taken to generate the page: 0.00992 seconds