% This file, startup.m, runs when Matlab starts.
% You should set matlabdirectory appropriately for your system.

matlabdir = '/Users/gilbert/Documents/CS290hSpring2014/Matlab';

dfile = sprintf('diary-%s.txt',date);
diary(dfile);
fprintf('Matlab diary from CS 290H, %s\n\n',datestr(now,'dddd, mmmm dd, yyyy'));
fprintf('This is %s/startup.m\n',      matlabdir);
fprintf('Starting diary file %s\n\n',  dfile);

addpath(sprintf('%s',                  matlabdir));
addpath(sprintf('%s/graphs',           matlabdir));
addpath(sprintf('%s/graphs/meshpart',  matlabdir));
addpath(sprintf('%s/graphs/Demmel',    matlabdir));

clear matlabdir dfile