pathtool
and a GUI will open.code
directory then press "Open".code
directory and all it's subdirectories are now added to the "MATLAB search path" list. pathdef.m
that contains the list of directories you see in the GUI.pathdef.m
file. This happens because by default you are attempting to save the pathdef.m
file in the MATLAB install directory. A solution to this problem is outlined here. Basically, the answer is to to tell the GUI to save the file in your startup folder. Typing userpath
will report which the startup folder is. You save the pathdef.m
file in there.startup.m
in your startup folder. This file will be run every time MATLAB starts. In the startup.m
file you can use the genpath and addpath commands to add directories to the path. Doing this has the advantage that if a future release of StitchIt has a different path (i.e. a directory is added or removed) then this will be automatically dealt with when startup.m
runs. For example your startup.m
file could look like this:pathtool
GUI just add the single project directory and don't add subfolders (as shown above). If you add subfolders MATLAB will add the hidden .git
directory and all its many subfolders.
Once everything is installed, move on to setting up the INI file.