How to read sequence of files?
1 回表示 (過去 30 日間)
古いコメントを表示
I have to import and after modification save more than 10.000 .bin files. My files name is '000000.bin' and I would like to save them with the same name like '000000.txt'. Anyone can help me? Thanks in advance!
My code which I want to use in all the files is the following:
fid = fopen('C:\Users\Dell\Documents\000000.bin', 'r');
data = fread(fid, '*int16');
result=reshape(data,4,[]);
result= result';
csvwrite('C:\Users\Dell\Documents\000000.txt',result);
fclose(fid);
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 10 月 29 日
This is a FAQ. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F for code samples.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!