MATLAB: Do I get “You cannot add method folders (ones that start with ‘@’) or private folders to the MATLAB search path” error

MATLAB

I am trying to to add a folder to MATLAB's path, but get "You cannot add method folders (ones that start with '@') or private folders to the MATLAB search path" error.

Best Answer

It is possible that you are trying to add a folder named "private" or one that starts with "@" character.
These are reserved for class definition in MATLAB and therefore cannot be added to the path:
As a workaround, you can rename your folder