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 revision Previous revision
matlab:matlab_path [2020/05/15 22:16]
igorkagan
matlab:matlab_path [2020/05/15 22:27] (current)
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: 2020/05/15 22:27 by igorkagan