Read data from text file
3 次查看(过去 30 天)
显示 更早的评论
Hi, everyone. I have .txt data file. Each new line begins with date in format mm/dd/yyyy, for example 06/25/2012. Part of the code:
A = fscanf(fid, '%g/%g/%g, ...
But dates write in 3 columns like [6 25 2012 ...]. Should I leave it or write date in one column as [06/25/2012 ... ]. The goal is to take a part of the history (for example from 6/25/2001 to 6/25/2002). What is the best way to do it?
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Low-Level File I/O 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!