help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

create matrix with all possible combinations


From: xeon
Subject: create matrix with all possible combinations
Date: Mon, 2 Nov 2009 16:43:14 -0800 (PST)

Hi,

I would like to create a matrix with 8 columns with all possible
combinations with the values 0 and 1 in Octave.

For example,
[0,0,0,0,0,0,0,0;1,0,0,0,0,0,0,0;0,1,0,0,0,0,0,0;...;1,1,1,1,1,1,1,1];

How can I do that?

thanks,

-- 
View this message in context: 
http://old.nabble.com/create-matrix-with-all-possible-combinations-tp26159876p26159876.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]