-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.m
More file actions
19 lines (17 loc) · 671 Bytes
/
init.m
File metadata and controls
19 lines (17 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%% Initialization script for the FDFIT suite
% Run this script to automatically add all the necessary folders to the
% MATLAB path.
% Add all subfolders (excluding Mercurial/Svn meta folders) to the search path
thisScriptFile = mfilename('fullpath');
[thisPath, ~, ~] = fileparts(thisScriptFile);
newPath = genpath(thisPath);
if filesep == '\'
filesepStr = '\\\';
else
filesepStr = '/';
end
newPath = regexprep(newPath, ['([^' pathsep ']+' filesepStr '.(hg|svn|git)[^' pathsep ']*' pathsep ')'], '');
addpath(newPath);
clear thisScriptFile thisPath newPath filesepStr
% Ignore warnings caused by draggable cursors.
warning('off', 'MATLAB:hg:EraseModeIgnored');