Re: Column Product of a Matrix of zeros and 1's
- To: mathgroup at smc.vnet.net
- Subject: [mg88042] Re: Column Product of a Matrix of zeros and 1's
- From: P_ter <petervansummeren at gmail.com>
- Date: Wed, 23 Apr 2008 04:05:25 -0400 (EDT)
Hello Bill, thanks for your answer and sorry I am not clear. This is an example of myGlobalMatrix: myM2 = { {1, 1, 0, 0, 0, 0, 1, 0, 0}, {1, 1, 0, 0, 0, 0, 1, 1, 0}, {1, 1, 1, 0, 0, 0, 1, 1, 0}, {1, 0, 1, 0, 0, 0, 1, 1, 1}, {1, 1, 0, 1, 0, 1, 0, 0, 0}, {1, 1, 1, 1, 0, 1, 0, 0, 0}, {1, 0, 1, 1, 1, 0, 0, 0, 0}, {1, 0, 1, 1, 0, 1, 0, 0, 0} }; I take the product of colomn 1 and 2 as an example: {1,1,1,0,1,1,0,0} (thisSet= {1,2}) The positions of the 1's are: {1,2,3,5,6} (with Flatten) I solved how to do this for thisSet etc. But I did not use the property that myGlobalMatrix (myM2)is 1's and 0's. with friendly greetings, P_ter