locDir=pwd;%the directory where we start from and will come back to matDir=pwd;%the directory where gcmfaces and MITprof were downloaded test0=dir([matDir '/gcmfaces']); test1=dir([matDir '/MITprof']); if isempty(test0)|isempty(test1); error('startup.m : matDir needs to be the directory where gcmfaces & MITprof are located\n'); end; cd([matDir '/gcmfaces']); global gcmfaces_verbose; gcmfaces_verbose=0; gcmfaces_path; cd([matDir '/MITprof']); global MITprof_verbose; MITprof_verbose=0; MITprof_path; cd(locDir); clear locDir matDir test0 test1;