Matlab读取bin文件中的数据

%以大端方式读取指定路径的bin文件
fid=fopen('C:\Users\Administrator\Desktop\data.bin','rb');
%以int16的格式将数据存放在列向量中
[a,count]=fread(fid,[500 1],'int16');
fclose(fid);%关闭文件

你可能感兴趣的:(自动控制)