a = rand(10,1); % 8*10=80kb% 写入fid = fopen('test.bin','w');fwrite(fid,a,'double');fclose(fid);% 读取fid1 = fopen('test.bin','r');lkl = fread(fid1,'double');fclose(fid1);
如果觉得《matlab写入读取二进制文件》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2024-04-25 03:36:30
a = rand(10,1); % 8*10=80kb% 写入fid = fopen('test.bin','w');fwrite(fid,a,'double');fclose(fid);% 读取fid1 = fopen('test.bin','r');lkl = fread(fid1,'double');fclose(fid1);
如果觉得《matlab写入读取二进制文件》对你有帮助,请点赞、收藏,并留下你的观点哦!