If you have experienced the error mentioned above, particularly when using a shared computer then the chances are that the directories listed relate to a user account or area of the filesystem that you don’t have access to, or they have been deleted.
To resolve the problem, it is very simple, follow the instructions listed below
Once initialised, type the following
and hit enter, this will open the editor and enable you to remove the directories that are causing the error.
save the file and restart matlab, you will notice that you no longer have the error