Convert funcion
- To: mathgroup at smc.vnet.net
- Subject: [mg88325] Convert funcion
- From: Johum <tuyenthanh101107 at yahoo.com>
- Date: Thu, 1 May 2008 06:28:34 -0400 (EDT)
Hello Group, Someone could help me with this function? fConver[cmatrix], this function will find all subsets of rows of the rectangular matrix which have exactly one nonzero element in each column. For example: cmatrix=({{0,0,1,0,1,1,0},{1,0,0,1,0,0,1},{0,1,1,0,0,1,0}, {1,0,0,1,0,0,0},{0,1,0,0,0,0,1},{0,0,0,1,1,0,1}}); fConvert[cmatrix] the out put will be {{{1,4},{3,5,6},{2,7}}} Thank you All, Johum,