matlab bin格式转txt输出

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);

你可能感兴趣的:(matlab)