读取文件问题
clear allclc
arrayCount = 0;
fid = fopen('magic5.dat','rb');
while ~feof(fid)
arrayCount = arrayCount + 1
arrayBufa(arrayCount) = fread(fid,1,'uint8=>uint8',0)
end
fclose(fid);
arrayCount
使用上面的程序读取文件,为什么arrayBufa得到了正确的 16 个数据,而arrayCount得值却是 17 而不是 16 呢?

~~~~~~~~~~~~~~~好好学习~~~~~~~~~~~~~~~~~~~~~~~~~~~~~