Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Deleting entries with zero in a table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111571] Re: Deleting entries with zero in a table
  • From: Themis Matsoukas <tmatsoukas at me.com>
  • Date: Fri, 6 Aug 2010 06:54:57 -0400 (EDT)

MyList = {-1, 0, -2, 0, 1, 0, 2, 0, 3, 0, 4, 0}

{-1, 0, -2, 0, 1, 0, 2, 0, 3, 0, 4, 0}

Select[MyList, # != 0 &]

{-1, -2, 1, 2, 3, 4}

Themis


  • Prev by Date: Rearrange equation
  • Next by Date: Re: A new graphic user interface
  • Previous by thread: Re: Deleting entries with zero in a table
  • Next by thread: Re: Can't get Mathematica to evaluate correctly a