The new version of MATLAB requires Windows SDK 7.1, not the previous, when running the Mex library. NET4. And because. NET4 + Visual C + + 10 and SDK 7.1 have a certain conflict, the former must be uninstalled before installing the latter one.
In the reference
1.http://www.cnblogs.com/zzling007/p/6661705.html
2.http://www.cnblogs.com/duanshuiliu/archive/2013/04/02/2994776.html
3.https://cn.mathworks.com/matlabcentral/answers/233850-how-can-i-install-sdk-7-1-on-windows-10
After that, the overall steps are summarized as follows:
1. Uninstall
Visual C + + x86 redistributable,
Visual C + + x64 Redistributable (64-bit Windows)
2. Run the command, without installing the Word will prompt does not exist
msiexec/x {2F8B731A-5F2D-3EA8-8B25-C3E5E43F4BDB}
msiexec/x {81455DEB-FC7E-3EE5-85CA-2EBDD9FD61EB}
3. Installing Windows SDK 7.1
This step may have an error about rte.net, regardless of the continued installation.
4. Run the patch
vc-compiler-kb2519277
Complete the Windows SDK 7.1 installation. The MEX Library of MATLAB can be used normally.
Windows SDK 7.1 32bits:http://download.microsoft.com/download/f/1/0/f10113f5-b750-4969-a255-274341ac6bce/grmsdk_en_dvd.iso
Windows SDK 7.1 64bits:http://download.microsoft.com/download/f/1/0/f10113f5-b750-4969-a255-274341ac6bce/grmsdkx_ En_dvd.iso
Visual C + + 2010 Patch Pack vc-compiler-kb2519277:https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=4422
Windows SDK 7.1 Installation Tutorial