1.安装指定版本的MinGW-w64。 2.在matlab命令窗口中 mex -setup C++ 3.编译 make(要进入有c文件的目录) 转载于:https://www.cnblogs.com/drinkMilk/p/10524267.html