MathGroup Archive 2012

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

Search the Archive

How to use Pick[]; Is this a bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127671] How to use Pick[]; Is this a bug?
  • From: benp84 at gmail.com
  • Date: Tue, 14 Aug 2012 04:22:41 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

In[1]:=  Pick[{1, 2, 3, 4, 5}, {9, 0, 7, 0, 6}, Except[0]]
Out[1]:= {1, 2, 3, 4, 5}

Shouldn't this return {1, 3, 5}, since these are the corresponding elements that match Except[0]?



  • Prev by Date: Find Position of many elements in a large list.
  • Next by Date: Simulate mouse double-click with Mathematica commands
  • Previous by thread: Re: Find Position of many elements in a large list.
  • Next by thread: Re: How to use Pick[]; Is this a bug?