Re: Find position of nonzero elements

*To*: mathgroup at smc.vnet.net*Subject*: [mg120377] Re: Find position of nonzero elements*From*: Sseziwa Mukasa <mukasa at gmail.com>*Date*: Wed, 20 Jul 2011 06:34:33 -0400 (EDT)*References*: <201107191053.GAA10147@smc.vnet.net>

Position[matrix,Except[0]] If it's machine precision you may need to do Position[matrix,Except[0.]] On Jul 19, 2011, at 6:53 AM, Dominic W=F6rner wrote: > Hi, > > How can I find the indices i and j of all nonzero elements of a matrix. > I want that because there are only some nonzero elements in a huge > matrix. > > Best regards, > Dominic >

**References**:**Find position of nonzero elements***From:*Dominic Wörner <dominic.woerner@mpi-hd.mpg.de>