%% Load in extra stuff if commandline is ready for it msg=''; %------------ FreeSurfer FAST ------------------------% fsfasthome = getenv('FSFAST_HOME'); if(isempty(fsfasthome)) msg=sprintf('%s FSFAST',msg); else path(path,[fsfasthome '/toolbox']); end %---------------FMRI_ANALYSIS_TOOLBOX-------------------% fmri_analysis_dir = getenv('FMRI_ANALYSIS_DIR'); if(isempty(fmri_analysis_dir)) msg=sprintf('%s FMRI_ANALYSIS_TOOLBOX',msg); else path(path,[fmri_analysis_dir '/toolbox']); end %------------ FreeSurfer Tools ------------------------% freehome = getenv('FREESURFER_HOME'); if(isempty(freehome)) msg=sprintf('%s FREESURFER',msg); else path(path,[freehome '/matlab']); end %-------------MNE TOOLBOX----------------------------% mneroot = getenv('MNE_ROOT'); if(isempty(mneroot)) msg=sprintf('%s MNE',msg); else addpath(path,[mneroot '/matlab/toolbox']); mne_setup_toolbox end %----------------------------------------------------% clear fsfasthome fmri_analysis_dir freehome mneroot % Let the user know what is missing from the above if ~isempty(msg) fprintf('NO:%s\n',msg); end clear msg %% fprintf('My scripts...') addpath(genpath('/autofs/homes/009/daniel/matlab')); fprintf('My judith scripts...') addpath(genpath('/autofs/space/ocean_003/users/software/matlab')); fprintf('HOMer and psychtoolbox...') addpath(genpath('/autofs/space/ocean_006/users/daniel/matcode')); fprintf('\nJudith scripts...(skipped)\n'); if 0 addpath(genpath('/autofs/space/ocean_003/users/software/sensors')); addpath(genpath('/autofs/homes/005/judith/bin/scripts_studies')); fprintf('1...'); addpath(genpath('/autofs/homes/005/judith/bin/sensors')); fprintf('2.\n'); disp('Suit,spm,mne...') p = ['/autofs/space/lyon_009/pubsw/common/spm/spm5/toolbox/suit:',... '/usr/pubsw/common/spm/spm5:',... '/autofs/space/orsay_008/megdev/megsw-dev/mne/matlab:']; addpath(p); end %% GIVE ME DEBUGGING POWER dbstop if error %% if 0 %%%%%%%%%%%%%%%%% Psychtoolbox path(path,genpath('/space/crash/1/users/greve/Psychtoolbox')); try fprintf('Adding the PsychJava folder to Matlabs dynamic classpath...\n'); javapath = [PsychtoolboxRoot 'PsychJava']; javaaddpath(javapath); return; catch error('Failed to add PsychJava to classpath for unknown reason!'); psychrethrow(psychlasterror); end %------------------------------------------------------------------------------ end %%%%% useful for printing pictures &&&&& set(0,'DefaultFigurePaperPositionMode','auto')