why textscan did not work ?
显示 更早的评论
hi, I have file as:
1488844,3,2005-09-06
822109,5,2005-05-13
885013,4,2005-10-19
I used textscan to get each column alone then I can deal with date to convert it , but no give what I need. thanks
1 个评论
Fangjun Jiang
2011-11-3
You've been here long enough to learn to use the {}Code format.
回答(1 个)
Walter Roberson
2011-11-3
textscan(fid, '%f%f%s', 'Delimiter', ',')
3 个评论
huda nawaf
2011-11-3
huda nawaf
2011-11-3
Walter Roberson
2011-11-3
datenum(c{3},'yyyy-mm-dd')
类别
在 帮助中心 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!