MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Count

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47347] Re: [mg47330] Count
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Tue, 6 Apr 2004 06:36:30 -0400 (EDT)
  • References: <200404050923.FAA21903@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Apr 5, 2004, at 5:23 AM, paolo wrote:

> if i have a time serie, how can i Count the elements of this time 
> serie that are within a defined range
> Example:
>
> x={1,1.023,1.056,2.45,5.67,....}
>
> how can i Count the elements inside the range (1,3)?
>
> thanks
>
> Paolo
>

Length[Select[x,1<=#<=3&]

Regards,

Ssezi

PS - As always there are alternatives.


  • References:
    • Count
      • From: "paolo " <tarpanelli@libero.it>
  • Prev by Date: Re: Count
  • Next by Date: Re: Count
  • Previous by thread: Count
  • Next by thread: Re: Count