MathGroup Archive 2006

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

Search the Archive

Re: Count Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65533] Re: [mg65501] Count Function
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 6 Apr 2006 06:52:57 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Greg,

What about...

Count[X[[All,14]], x_/;x > -9.]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 



From: Gregory Lypny [mailto:gregory.lypny at videotron.ca]
To: mathgroup at smc.vnet.net


The syntax will be the death of me.

Count[X[[All,14]], -9.] will tally how many elements in column 14 of  
matrix X are equal to -9, but I can't for the life of me figure out  
how to get how many are greater than -9.  Any hint would be most  
appreciated.

	Greg




  • Prev by Date: Re: Count Function
  • Next by Date: Speed: Inner MUCH slower than dot product??
  • Previous by thread: Re: Count Function
  • Next by thread: Re: Re: Count Function