Hello Jianxin Liu,
I see that you are facing license related error while using MATLAB.
Please note that, with MATLAB releases R2012a through R2013b on Mac OS X 10.8 to at least 10.10 (Mountain Lion, Mavericks, and Yosemite), your MathWorks Host ID points to en1, not en0. On Mac OS X 10.7 and earlier, the Host ID is still en0. This issue only affects Mac models which have multiple network interfaces. Macs without a built in Ethernet port are not effected. This includes the MacBook Air and the retina MacBook Pro.
For instructions to resolve this error, please see the link below provided by MathWorks Support Team about error -9:
- For Mac OS https://www.mathworks.com/matlabcentral/answers/97313-when-manually-activating-r2012a-r2013b-on-macos-x-10-8-10-10-why-do-i-receive-an-error-9
- For polyspacehttps://www.mathworks.com/matlabcentral/answers/93587-why-do-i-receive-a-license-error-9-when-using-a-polyspace-client-locked-to-the-computer-s-hard-driv
- R2008a username case sensitivity https://www.mathworks.com/matlabcentral/answers/93146-why-do-i-receive-a-license-manager-error-9-in-matlab-r2008a-after-changing-network-connections-on-w
- Using old dongle https://www.mathworks.com/matlabcentral/answers/97510-why-do-i-receive-license-manager-error-9-when-i-run-matlab-6-0-r12-with-a-dongle
I hope it helps!