%% Write Cell Array to Specified Sheet and Range
% Create a cell array and write it to a specified sheet and range in a spreadsheet file.
% Create a cell array in the workspace.

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

% Write the cell array to the file C.xls, in the second worksheet in the file, starting at the third row.

writecell(C,'C.xls','Sheet',2,'Range','A3:C5')

% Read and display the cell array.

readcell('C.xls','Sheet',2,'Range','A3:C5')

% Copyright 2018 The MathWorks, Inc.