필터 지우기
필터 지우기

How to read sequence of files?

조회 수: 5 (최근 30일)
Nora Hora
Nora Hora 2016년 10월 29일
답변: Image Analyst 2016년 10월 29일
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);

답변 (1개)

Image Analyst
Image Analyst 2016년 10월 29일

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by