To connect COMSOL with a MATLAB® terminal requires that xterm is installed on the machine. If this is not the case as it might be for a computation COMSOL server, a workaround is to manually connect MATLAB to a COMSOL server with the function mphstart.