I use this code fragment to read a binary file into a array
fid=fopen('data.bin','rb') % opens the file for reading
A = fread(fid, count, 'int16') % reads _count_ elements and stores them in A
But it reads the file into a 1 dimensional array. Is there a direct method to read a binary file into a 2d array without me having to write loops to do that ?