how to read this file in matlab?
6 次查看(过去 30 天)
显示 更早的评论
hi.. i have a .tim extension files(nearly 150000)...which is float32 format.. i need to read that file using matlab and save in MS-excel format as output.is it possible..? help me with this..pl...whether it is similar like converting a binary format to ASCII format..? any easy code r function to reduce time consumption in converting ..?
0 个评论
回答(2 个)
ES
2013-9-4
You can read the .tim file using
FileObj=fopen(FileName);
FileData=textscan(FileObj, ...
'%s .....', 'delimiter', ',');
then modify your data if you need and then write them into xls by
xlswrite
or
using ActiveX COM object.
Walter Roberson
2013-9-5
fread() can read float32 binary. Watch out for possible differences in byte order.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!