


BML_DEFAULTS loads requried directories to Matlab's path


0001 function bml_defaults 0002 0003 % BML_DEFAULTS loads requried directories to Matlab's path 0004 0005 BML_FOLDERS = {'signal','annot','sync','io','utils','doc'}; 0006 0007 bmlPath = fileparts(mfilename('fullpath')); % get the full path to this function, strip away 'ft_defaults' 0008 %bmlPath = strrep(bmlPath, '\', '\\'); 0009 0010 for i=1:numel(BML_FOLDERS) 0011 i_path = [bmlPath filesep BML_FOLDERS{i}]; 0012 if isempty(regexp(path, i_path, 'once')) 0013 addpath(i_path); 0014 end 0015 end 0016 0017 format long;