help-octave
[Top][All Lists]
Advanced

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

Combining Vectors


From: stn
Subject: Combining Vectors
Date: Mon, 18 Apr 2011 11:11:58 +0200


Hi,

is there a function that will combine two vectors so that the result has two columns and one row for each possible combination of the elements of the two vectors?

like this:
a = [1 ; 2 ; 3]
b = [4 ; 5 ; 6]

combined_vectors = [
1 4
1 5
1 6
2 4
2 5
2 6
3 4
3 5
3 6
 ]

THX
stn

reply via email to

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