MathGroup Archive 1999

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

Search the Archive

Parts of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15430] Parts of a list
  • From: "Hossein Kazemi" <kazemi at som.umass.edu>
  • Date: Wed, 13 Jan 1999 20:57:41 -0500
  • Organization: University of Massachusetts, Amherst
  • Sender: owner-wri-mathgroup at wolfram.com

I have a list (matrix) that looks like this

x={{1,0},{2.5, .5},{3,0},{0,2}}

Now I want to eliminate those vectors that have zero for the second
case. That is, I want to get

{{2.5, .5},{0,2}}.

Is there a quick way of doing this?
I tried to apply Select to this but could not get it to work.

Thanks for your help.

Hossein Kazemi
UMass
kazemi at som.umass.edu




  • Prev by Date: Visualizing 3D LP-problems
  • Next by Date: Helmholtz equation
  • Previous by thread: Re: Visualizing 3D LP-problems
  • Next by thread: Re: Parts of a list