Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Help with an exercise Date: Thu, 20 May 2010 22:10:04 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 32 Message-ID: <ht4bvs$frf$1@fred.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: webapp-02-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1274393404 16239 172.30.248.37 (20 May 2010 22:10:04 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Thu, 20 May 2010 22:10:04 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2361057 Xref: news.mathworks.com comp.soft-sys.matlab:637829 Could anyone solve this problem? I'd be very grateful if someone could find the solution... I have a matrix 16x16 and I have to make one other matrix with all the combinations of 8x8 matrixes. For example (in a smaller scale): It is given the matriz A= x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 and I want to do another matriz with all the combinations of matrixes 2x2. It will be these two matrixes: 1 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 x x1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 0 x2 0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0 x3 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0 x4 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 x5 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 x6 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 x7 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 x8 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 x9 x10 x11 x12 (...) x16 Maybe there are more possible combinations that those ones I did... The idea is to create a function that gives me the first matrix (the one with zeros and ones) but to a matrix A 16x16 (can't be made manually). Thank you