MathGroup Archive 2006

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

Search the Archive

Re: List Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67922] Re: List Question
  • From: "J Siehler" <jsiehler at gmail.com>
  • Date: Thu, 13 Jul 2006 06:53:17 -0400 (EDT)
  • References: <e92e03$ljm$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> {{x1,y1},{x2,y2},{x3,y3,z3},{x4,y4}...}
> > As you can see some of the data points have three elements. I would
> like to remove these z elements so that the list has a structure
> {{x1,y1},{x2,y2},{x3,y3},{x4,y4}...}. I'm not sure how to achieve this

l={{x1,y1},{x2,y2},{x3,y3,z3},{x4,y4},{x5,y5,z5},{z6,y6}}

Replace[l, {a_, b_, __} -> {a, b}, 1]


  • Prev by Date: RE: "infinite" line through 2 3D points
  • Next by Date: RE:How to get a positive solution from Solve Command
  • Previous by thread: Re: List Question
  • Next by thread: Re: List Question