Oftentimes we add a “toolbox” to Matlab and we want to use functions from that toolbox without adding the path over and over in functions.
Here’s how to make those paths persistent in Matlab and Octave, using example toolbox directories
addpath() instead of
Do not put brackets or braces around the multiple paths.
- (Octave only): configure
Prepend your path(s) by adding to file
restart Matlab/Octave and type
and you should see your new toolbox directories at the top.
Matlab doesn’t autoload
You may have an older version of Matlab that doesn’t automatically load from
Fix this by adding to