Correct syntax for textscan() function
2 次查看(过去 30 天)
显示 更早的评论
Hello there,
Would anybody know the correct syntax to import a column of time values from a text file using the textscan() function. The format of the time values is like this:
12:57:00
15:19:00
08:07:00
10:36:00
Many thanks
0 个评论
采纳的回答
Friedrich
2012-2-13
Hi,
try %s as format string
out = textscan(fid,'%s')
(fid is the filepointer created by fopen)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!