As you've discovered, your particular combination of Intel Fortran and Visual Studio is not supported in 14a ( Details ). You are on the right track if you want to hack something together. None of this is documented or supported, I can offer a few hints:
- Don't meddle with the files in your preferences folder ('prefdir'). Instead, put the XML file you are experimenting with in your current working folder ('pwd'). Give it a name like 'custom.xml'; you can instruct MEX to use this file with 'mex -f custom.xml other arguments'.
- You are effectively going to want to update custom.xml file such that it preserves the Intel-specific settings, but swaps in the VS2013 settings. This is often, but not always, a largely mechanical process. The file matlabroot\bin\win64\mexopts\msvcpp2013.xml should give you a strong sense of the edits you'll want to make in custom.xml
Hope this helps.
Best Answer