【发布时间】:2011-12-24 14:32:36
【问题描述】:
我使用此代码片段将二进制文件读入数组
fid=fopen('data.bin','rb') % opens the file for reading
A = fread(fid, count, 'int16') % reads _count_ elements and stores them in A
但它将文件读入一维数组。有没有一种直接的方法可以将二进制文件读入二维数组,而无需我编写循环来做到这一点?
【问题讨论】: