1、下载安装。在matlab2017b的附加功能中搜索,安装MinGw-w64:
或者从这里下载:http://tdm-gcc.tdragon.net 或者http://mingw-w64.org,注意安装不能不能有空格,找一个最新的下载安装。
2、测试安装的MingGW。https://ww2.mathworks.cn/help/matlab/matlab_external/install-mingw-support-package.html
3、完成。