View on GitHub

Settings_Matlab

Settings and notes for Matlab

Instructions on how to add a directory to your search path

Last updated 2020-07-20 by Adam Lu


In MATLAB, to be able to call a custom script/function, one of the following must be true:

  1. It exists in the current directory.
  2. The directory containing it exists in the search path for your MATLAB session.

There are two main methods one can add a directory to the search path.

Method 2: Add it to the search path for all future MATLAB sessions called from your home directory