Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Convert funcion

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88368] Re: Convert funcion
  • From: Johum <johums at yahoo.com>
  • Date: Sat, 3 May 2008 06:15:57 -0400 (EDT)

I am trying to work with this function but it dose not work, if someone could give me a hand!

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}}}



Thanks All

Johum S.


  • Prev by Date: Re: Wolfram Workbench user experiences
  • Next by Date: StringMatchQ and Regular Expressions
  • Previous by thread: Re: Convert funcion
  • Next by thread: Re: Convert funcion