function [data] = load_dataset_from_files(name, dir)

% datafile(FILE) loads a matrix from /var/tmp/FILE and returns the matrix.
% datafile(FILE,DIR) loads a matrix from DIR/FILE instead.

if nargin<2 | isempty(dir),  dir = '/var/tmp'; end

load([ dir '/' name ]);
data = eval( name );
