Re: Count
- To: mathgroup at smc.vnet.net
- Subject: [mg47342] Re: Count
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 6 Apr 2004 06:36:24 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <c4re7c$mhs$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
x = {1, 1.023, 1.056, 2.45, 5.67};
Count[x, i_ /; i >= 1 && i <= 3 ]
??
Regards
Jens
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