MATLAB will use the value of the $TMP variable for the location of the temp folder, so you may encounter this error if $TMP isn't set to /tmp. If you do not have permission to write to the path stored in $TMP, then you will not be able to start a parpool.
To determine the folder used by MATLAB, enter the following into the MATLAB command prompt:
>> tempname
If this isn't a folder that you have permission to write to, either change the value of $TMP to a folder you _can _write to, or change the permissions of the folder $TMP is set to.
You can also try the following:
1. Launch MATLAB
2. Go to ‘Manage Cluster Profile’ located in the 'Parallel' drop down options.
3. Select the appropriate Cluster Profile
4. Click ‘Edit’ and the bottom right-hand corner
5. Edit the field for JobStorageLocation to a directory that you have permissions to
Best Answer