extracting data from a .rec file
26 次查看(过去 30 天)
显示 更早的评论
I want to write some code that will open a simple .rec file, (which I'm able to open manually by just clicking on it in Matlab), then read along line by line, extracting two bits of data from each line that I can identify as being a certain number of spaces past a set character, and doing so until the first line in which another character appears.
I've tried using fopen, fscanf, fget1 and fprintf, but whenever I try and use fopen it just returns a 1*1 double.
1 个评论
Walter Roberson
2012-11-22
fopen() is intended to return a 1*1 double. The value it returns is the file identifier that is needed for further file operations. fopen() itself does not read any data.
回答(1 个)
另请参阅
类别
在 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!