RE: Count
- To: mathgroup at smc.vnet.net
- Subject: [mg47344] RE: [mg47330] Count
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 6 Apr 2004 06:36:26 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Paolo, Here are two methods. test = Table[Random[Real, {0, 6}], {50}]; Count[test, x_ /; 1 <= x <= 3] 21 Length[Select[test, 1 <= # <= 3 &]] 21 David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ -----Original Message----- From: paolo [mailto:tarpanelli at libero.it] To: mathgroup at smc.vnet.net Subject: [mg47344] [mg47330] Count 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