1、新建项目,项目命名,选择 dll,空项目 2、在源文件添加.def文件,写入语句: LIBRARY;"Find_conpix_C" EXPORTS;mexFunction 3、添加 .cpp文件,写mexFunction