%% Write Cell Array to Spreadsheet File
% Create a cell array, write it to a spreadsheet file, and then read and display the contents of the file.
% Create a cell array in the workspace.

C =  {1,2,3;
     'text',datetime('today'),hours(1)}

% Write the cell array to a spreadsheet file.

writecell(C,'C.xls')

% Read and display the matrix from C.xls.

readcell('C.xls')

% Copyright 2018 The MathWorks, Inc.