This could be caused by a few things:
- The user trying to install MathWorks Products does not have permission to modify the folder.
- Security software such as SELinux is preventing the user from having full permissions on /tmp and the folder where MATLAB is attempting to be installed.
- The /tmp folder is mounted with the noexec option.
The third situation is easy to detect and work around for the duration of the installation:
- Check the output from mount to see whether there’s a /tmp mount (mount | grep tmp)
- If there is, check whether it has the noexec option set.
- If it has that option, remount it with exec. It’ll go back to the way it was on the next reboot. (sudo mount -o remount,exec /tmp)