I have a cell X such that X{i} is a 10x10 matrix. There are about 500 of these matrices. I am using writecell(X,"textfile") to write the cell contents to a text file. However when I retrieve the data as C = readcell("textfile"), C{1} is no longer a matrix but a single number. How do I retrieve the data properly?