%
%function array = readcfloats(fname)
%
%	Reads the array of shorts from a test file.
%

function array = readcfloats(fname)


fid = fopen(fname,'r','b');
s = fread(fid,3,'int16');
array = fread(fid,s(1)*s(2)*s(3),'float') +i*fread(fid,s(1)*s(2)*s(3),'float');
fclose(fid);

array = reshape(array,[s(:)]');



