Effacer les filtres
Effacer les filtres

How to read sequence of files?

5 vues (au cours des 30 derniers jours)
Nora Hora
Nora Hora le 29 Oct 2016
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);

Réponses (1)

Image Analyst
Image Analyst le 29 Oct 2016

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by