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
matlab:matlab_path [2020/11/20 16:30] igorkaganmatlab:matlab_path [2022/12/29 07:15] (current) – external edit 127.0.0.1
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.
  
-Example startup.m for repos and Fieldtrip and NeuroElf from DAG server (Y:):+Example startup.m for GitHub repositoriesand Fieldtrip and NeuroElf from DAG server (Y:):
  
 <code matlab> <code matlab>
 disp('Welcome to YOUR MATLAB VERSION, e.g. MATLAB2014a'); disp('Welcome to YOUR MATLAB VERSION, e.g. MATLAB2014a');
-addpath(genpath_exclude('YOUR_PATH_TO_REPOS','.git'));  +addpath(genpath_exclude('YOUR_PATH_TO_REPOS','.git')); %<--- !!! change 'YOUR_PATH_TO_REPOS'
 addpath('Y:\Sources\fieldtrip-20200604'); % or other path to fieldtrip addpath('Y:\Sources\fieldtrip-20200604'); % or other path to fieldtrip
 ft_defaults ft_defaults
Line 61: Line 60:
 </code> </code>
  
 +
 +==== pathdef.m ====
 +
 +When MATLAB gives an "eval..." error on startup, permissions for pathdef.m are screwed up, see:
 +[[https://www.mathworks.com/matlabcentral/answers/307356-why-do-i-get-an-error-using-eval-undefined-function-workspacefunc-for-arguments-of-type-struct]]
  
  
matlab/matlab_path.1605889814.txt.gz · Last modified: 2022/12/29 07:15 (external edit)