Appending the same array is indeed the reason of the problem, and doing as you say solves the issue.
However, since i want to have many matrix (one for each property of the cell), it is quite uncomfortable to have so many
col variables, one for each matrix.
So, do you know an easier way to create many matrix?
PS: just for the sake of knowledge, I would like to know what is happening in the code i wrote previously, why is it behaving like that?
It seems like, while writing
cell_code="hello" I am actually writing inside
col, and this would explain why
cell_type get modified too.
However if that´s the reason, remember that every row of the matrix is a copy of
col, meaning that
cell_type should be overwritten as well, but that´s not the case.
I´m really puzzled!