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/05/15 22:15] igorkaganmatlab:matlab_path [2020/05/15 22:27] igorkagan
Line 13: Line 13:
 2. Place custom startup.m to your [[https://www.mathworks.com/help/matlab/ref/userpath.html|userpath]] 2. Place custom startup.m to your [[https://www.mathworks.com/help/matlab/ref/userpath.html|userpath]]
 (type 'userpath' in the MATLAB command window to figure out yours)  (type 'userpath' in the MATLAB command window to figure out yours) 
 +
 +For example, a minimal **startup.m** for automatically include all GitHub repositories (but exclude not needed internal .git folders) can be just:
 +
 +<code matlab>
 +addpath(genpath_exclude('YOUR_PATH_TO_REPOS','.git')); 
 +</code> 
 +
 +**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.m: Example startup.m:
Line 30: Line 40:
 </code> </code>
  
-Or, the minimal **startup.m** can be just: 
- 
-<code matlab> 
-addpath(genpath_exclude('YOUR_PATH_TO_REPOS','.git'));  
-</code>  
- 
-**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 
  
  
matlab/matlab_path.txt · Last modified: 2022/12/29 07:15 by 127.0.0.1