Home > bml > bml_defaults.m

bml_defaults

PURPOSE ^

BML_DEFAULTS loads requried directories to Matlab's path

SYNOPSIS ^

function bml_defaults

DESCRIPTION ^

 BML_DEFAULTS loads requried directories to Matlab's path

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Tue 25-Sep-2018 10:08:19 by m2html © 2005