matlab bin格式转txt输出
clc,clear;
fid = fopen('\text.bin','rb');
data = fread(fid,Inf,'int16');
fclose(fid);fid=fopen('\text.txt','w');
fprintf(fid,'%d\n',data);
fclose(fid);
clc,clear;
fid = fopen('\text.bin','rb');
data = fread(fid,Inf,'int16');
fclose(fid);fid=fopen('\text.txt','w');
fprintf(fid,'%d\n',data);
fclose(fid);