diff --git a/startup_mtex.m b/startup_mtex.m index 4a4b37149..ccd807226 100644 --- a/startup_mtex.m +++ b/startup_mtex.m @@ -157,7 +157,7 @@ function do_install(local_path) % set MTEX search path function setMTEXPath(local_path) -exclPath = {'data','makeDoc','templates','nfft','ODF_Components_old','kernelFunctions'}; +exclPath = {'data','makeDoc','templates','nfft','ODF_Components_old','kernelFunctions','deprecated'}; if ~MATLABverLessThan('8.4'), exclPath = [exclPath,'8.4']; end if ~MATLABverLessThan('8.5'), exclPath = [exclPath,'8.5']; end @@ -380,7 +380,7 @@ function addpath_recurse(strStartDir, caStrsIgnoreDirs, strXorIntAddpathMode, bl %Loop through the directory list and recursively call this function. for intDirIndex = 1 : length(saSubDirs) strThisDirName = saSubDirs(intDirIndex).name; - blnIgnoreDir = any(strcmpi(strThisDirName, { 'private', 'CVS', '.', '..', caStrsIgnoreDirs{:} })); + blnIgnoreDir = any(strcmpi(strThisDirName, [ {'private'}, {'CVS'}, {'.'}, {'..'}, caStrsIgnoreDirs(:)' ])); blnDirBegins = any(strncmp(strThisDirName, {'@', '.','+'}, 1)); if ~(blnIgnoreDir || blnDirBegins) strThisStartDir = sprintf('%s%s%s', strStartDir, strFileSep, strThisDirName);