MathGroup Archive 1999

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

Search the Archive

Re: Parts of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15475] Re: Parts of a list
  • From: phbrf at t-online.de (Peter Breitfeld)
  • Date: Mon, 18 Jan 1999 04:22:15 -0500
  • Organization: das ist ein breites Feld ...
  • References: <77jkve$304@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hossein Kazemi <kazemi at som.umass.edu> schrieb:
> 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?


Hossein,

Is
   DeleteCases[x,{_,0}]

what you want?


es gruesst
      Peter
-- 
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--= 
  Peter Breitfeld,  Germany            (PGP public key: 08548045)


  • Prev by Date: Any Mathematica speed numbers for the new G3 Macs?
  • Next by Date: Re: assumption, supposition?
  • Previous by thread: Re: Parts of a list
  • Next by thread: Re: Parts of a list