I want to create a matrix using the following arrays:
A = [1111,2222,3333]
B = [20,25,26,27]
C = [1.5,2.6,3.7,4.5,5.4,6.7,7.2,8.8,9.0,10.0,11.0,12.2]
Each value in A need to be mapped to all values in be once (each element in A will be attached to all four values in b) and from there, I want the resulting 12,2 matrix to become a 12,3 matrix by adding array C
It should look like the following:
1111 20 1.5
1111 25 2.6
1111 26 3.7
1111 27 4.5
2222 20 5.4
2222 25 6.7
2222 26 7.2
2222 27 8.8
...........
3333 27 12.2
My first idea is to use a couple for loops, but I'm having a lot of trouble implementing the values in the 1st column
In my actual code the values will be assign as follows:
A = [random.randint(1250,14180) for x in range(len(5))]
C = [round(random.uniform(1.0,4.0),1) for x in range(len(15))]
B will be non random
B = [2000,2500,2600,2700]