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 revisionBoth sides next revision
matlab:matlab_path [2020/05/15 22:16] igorkaganmatlab:matlab_path [2020/05/15 22:27] igorkagan
Line 14: Line 14:
 (type 'userpath' in the MATLAB command window to figure out yours)  (type 'userpath' in the MATLAB command window to figure out yours) 
  
-The function **set_sources_path.m** can be something like the one below, to add all repositories but exclude not needed internal .git folders+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('F:\Dropbox\Sources\Repos','.git'));  +
-</code> +
- +
-Or, the minimal **startup.m** can be just:+
  
 <code matlab> <code matlab>
Line 39: Line 33:
 dbstop if error dbstop if error
 </code> </code>
 +
 +The function **set_sources_path.m** can be something like the one below, to add all repositories but exclude not needed internal .git folders:
 +
 +<code matlab>
 +addpath(genpath_exclude('F:\Dropbox\Sources\Repos','.git')); 
 +</code>
 +
  
  
matlab/matlab_path.txt · Last modified: 2022/12/29 07:15 by 127.0.0.1