save scalar numbers in matrices and vectors in cells