I have unknown vector which are produced by a loop. Every time one is created, I want to add it to a matrix.
For example, let's say I have my variable containing them being p
.
On first turn I have vector [ 1 2 3 ]
then I want p
to be
[ 1 2 3 ]
then I produce vector [ 4 4 5 6 6 ]
Then I want be to contains
[ 1 2 3 ]
[ 4 4 5 6 6 ]
So I can do something like p(1)
to access first vector, and p(2)
for second.
What is the closest representation I could use?