I wrote a little ebuild that installs MatLab on a Gentoo Linux system. With the ebuild, the installed files are tracked by the package manager and do not pollute the filesystem.

The process is not fully automated, so please mount the ISO to a root-accessible path, e.g.,

fuseiso matlab.iso my_path/ -o allow_root

and provide the path using CDROM_ROOT environment variable, as well as the path to the license file in MATLAB_LICENSE_FILE and the key either using MATLAB_INSTALLATION_KEY or using MATLAB_INSTALLATION_KEY_FILE if the key is in a file.

A recent version of the ebuild can be found here.