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