Excel displaying unwanted date data
이전 댓글 표시
I have an array of date data as shown:
dates=
'12/23/2011'
'12/23/2011'
'12/23/2011'
'12/23/2011'
'12/23/2011'
I want to find out how many values of date data I have and write it into excel, so I have this code:
num=1:length(dates);
num=num’;
xlswrite(‘file_1.xls’, num, ‘sheet1’, ‘A1’)
xlswrite(‘file_1.xls’, dates, ‘sheet1’, ‘B1’)
The dates end up being displayed in excel fine but the array of 1 to fine labeled "num" displays an array in excel that looks like this: 1/1/1900
1/2/1900
1/3/1900
1/4/1900
1/5/1900
Does anyone know how I would fix this?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!