% file_in.m

%% This function reads the given file and loads it into the MATLAB workspace.
%%
%% Written by Justin Romberg, May 1997.

function X = file_in(filename)

fid = fopen(filename,'r');

n = fread(fid, 1, 'int');
m = fread(fid, 1, 'int');

X = fread(fid, [m n], 'int');
X = X'; 
