Fix Matlab install permission denied error

When installing Matlab on Linux from a networked drive with:

./install

you might get an error like:

/tmp/mathworks_/sys/java/jre/glnxa64/jre/bin/java: Permission denied

Fix

copy the whole matlab installation directory to your local home drive ~ e.g. to ~/matlab

chmod +x ~/matlab/sys/java/jre/glnxa64/jre/bin/java

./install