User Tools

Site Tools


matlab:matlab_path

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
matlab:matlab_path [2020/11/20 16:15] igorkaganmatlab:matlab_path [2020/11/20 16:34] igorkagan
Line 22: Line 22:
 **Note:** [[https://github.com/igorkagan/matlab_config/blob/master/MATLAB2014/genpath_exclude.m|genpath_exclude.m]] should also be placed in the startup folder. **Note:** [[https://github.com/igorkagan/matlab_config/blob/master/MATLAB2014/genpath_exclude.m|genpath_exclude.m]] should also be placed in the startup folder.
  
-See https://github.com/igorkagan/matlab_config for example that includes genpath_exclude.m:+Example startup.for GitHub repositoriesand Fieldtrip and NeuroElf from DAG server (Y:):
  
-Example startup.m:+<code matlab> 
 +disp('Welcome to YOUR MATLAB VERSION, e.g. MATLAB2014a'); 
 +addpath(genpath_exclude('YOUR_PATH_TO_REPOS','.git')); %<--- !!! change 'YOUR_PATH_TO_REPOS' 
 +addpath('Y:\Sources\fieldtrip-20200604'); % or other path to fieldtrip 
 +ft_defaults 
 + 
 +% http://www.fieldtriptoolbox.org/faq/can_i_prevent_external_toolboxes_from_being_added_to_my_matlab_path/ 
 +[ftver, ftpath] = ft_version; 
 +rmpath(fullfile(ftpath, 'external', 'signal')) 
 +rmpath(fullfile(ftpath, 'external', 'stats')) 
 +rmpath(fullfile(ftpath, 'external', 'images')) 
 + 
 +addpath('Y:\Sources\NeuroElf_v11_7521'); addpath('Y:\Sources\NeuroElf_v11_7521\add_dag_ne_pipeline'); 
 + 
 +dbstop if error 
 +</code> 
 + 
 + 
 +---- 
 + 
 +See also https://github.com/igorkagan/matlab_config for the following example that includes genpath_exclude.m:
  
 <code matlab> <code matlab>
matlab/matlab_path.txt · Last modified: 2022/12/29 07:15 by 127.0.0.1