MATLAB: Writing date on an excel sheet

dateexcel sheet

Hi folk,
Got a question about writing date on an excel sheet. I am using the following codes:
DATE=datestr(now);
xlswrite('test.xls', DATE, 'A1')
The problem is that it separates each number and letter and put them in separate cells. I want the whole date in one cell like 'A1' but it appears from 'A1' to 'T1'
I appreciate your help. Thank you.
S:-)

Best Answer

xlswrite('test.xls', {datestr(now)})