MathGroup Archive 1999

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

Search the Archive

Re: Parts of a list

  • To: mathgroup at
  • Subject: [mg15498] Re: Parts of a list
  • From: "Dale Horton" <daleh>
  • Date: Mon, 18 Jan 1999 04:22:45 -0500
  • Organization: Wolfram Research, Inc.
  • References: <77jkve$>
  • Sender: owner-wri-mathgroup at

Use DeleteCases.

DeleteCases[{{1,0},{2.5, .5},{3,0},{0,2}},{_,0}]



Hossein Kazemi wrote in message <77jkve$304 at>...
>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
>kazemi at

  • Prev by Date: Re: Data fitting with Mathematica 3.0
  • Next by Date: Re: Parts of a list
  • Previous by thread: Parts of a list
  • Next by thread: Re: Parts of a list