Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 350 Bytes
function x=loadb(file,frmt,of);
% x=LOADB(file,frmt,of)
%
% Loads a binary file.
%
% INPUT:
%
% file Filename string
% frmt Format (default: 'float32')
% of File-opening flag
%
% Last modified by fjsimons-at-alum.mit.edu, 04/30/2009
defval('of',osdep);
defval('frmt','float32')
fid=fopen(file,'r',of);
x=fread(fid,frmt);
fclose(fid);