MATLAB: Mex -setup is not locating the 64 bit MS visual c++ compiler

c-compilermex -setup

>> mex -setup
Please choose your compiler for building external interface (MEX) files:
When I run the mex-setup then following options are shown, but it is not getting the 64bit version of c++ compiler, do any body help me out of it plz
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2010 Express in C:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Environment Details are:
Windows 10
Matlab r2010a 64 bit
Microsoft Visual c++ 2010 64bit

Best Answer

Matlab r2010a is not support on Windows 10. Only MATLAB R2015b is currently supported on Windows 10.
If I recall, I did hear of one person who was able to get a compiler working with R2015a and Windows 10, but I do not recall anyone managing to get a compiler working with an earlier version. There are difficulties with .NET compatibility (that are sometimes solvable it appears), and there has been a difficulty with a bug in Windows 10. The Windows 10 bug might have been fixed in the November update, the one that was taken away again a few days later.
Getting R2010a to work with a compiler on Windows 10 might not be possible.