MATLAB: Convert cell to char and change to text file

cell to chartext file

Hi please help!
I have a cell array like the following:
and I want to convert that into a char array like the following (Note:this is just an example not the desired output):
following that, I'd like to put both of those side by side in a txt file output, like this:
thank you so much!

Best Answer

temp = strcat(cellstr(HHMMSS), {'; '}, X2);
fid = fopen('file_name.txt', 'wt');
fprintf(fid, '%s\n', temp{:});
fclose(fid)
Related Question