Simply but handy question

*To*: mathgroup at smc.vnet.net*Subject*: [mg124815] Simply but handy question*From*: jediwhelan <jediwhelan at googlemail.com>*Date*: Wed, 8 Feb 2012 05:29:04 -0500 (EST)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com

Dear group members, I am new to mathematica (well, I'm not actually but I haven't used it in 5 years +). Is there an easy way to return a matrix X of 1's and 0's to test whether the entries in Y are different from zero. i.e., if Y = {{a,b},{0,c}} Then X would return X = {{1,1},{0,1}} This would be handy for very large or complicated matrices where one would like to know if specific entries are zero? Many thanks, Paul

**Follow-Ups**:**Re: Simply but handy question***From:*Murray Eisenberg <murray@math.umass.edu>

**Re: Simply but handy question***From:*Barrie Stokes <Barrie.Stokes@newcastle.edu.au>

**Re: Simply but handy question***From:*Christoph Lhotka <christoph.lhotka@fundp.ac.be>

**Re: Simply but handy question***From:*Bob Hanlon <hanlonr357@gmail.com>