MATLAB: How to convert cell contents to a matrix

cell2matcellsdata importmatrixtext filetxt

I am trying to import text files, and convert it's data into a matrix. When I import the file, it stores it as a 50×1 cell, how can I convert this to a 50×9 or 50×10 matrix, where I can reference each aspect of the file individually?
fid = fopen ('40_8deg_HL_Both.txt', 'r');
data = textscan(fid, '%s', 'HeaderLines', 9, 'delimiter', '/n');
fclose (fid);
mat = data{:};

Best Answer

T = readtable('40_8deg_HL_Both.txt','ReadVariableNames',false,...
'Format','%{yyyyMMdd hh:mm:ss.SSS}D %f %f %f %f %f %f %f %q',...
'HeaderLines',9);
and please attach your txt-file.