MATLAB: Is it possible to add a directory that does not yet exist to the MATLAB path in MATLAB 7.2 (R2006a)

addpathdirectoryexistMATLABpath

I want to use ADDPATH on a directory that does not yet exist; in other words, I want to be able to add directories dynamically.

Best Answer

It is not possible to add directories dynamically to the MATLAB path.
As a workaround, create the directory, add the path, then remove the directory.