For example I have:
q1=[]
q2=[]
q3=[]
And after some operations they are:
q1 = [0, 1]
q2 = [2, 3, 4, 5, 6]
q3 = [7, 8, 9]
So I have 3 arrays. As you see they have different length.
I want to make a matrix
that will look like:
matrix = [[0, 1],
[2, 3, 4, 5, 6],
[7, 8, 9]]
And so for example matrix[1]
will return [2, 3, 4, 5, 6]
How can I do this?
I've tried some approaches like v = np.matrix([q1, q2, q3])
but it doesn't help