Matlab导出动态链接库dll

1.新建 *.m文件
内容:

function  c=Add(a,b)
c=a+b;
end

保存为 Add.m
2.命令行输入

>> mex -setup

MEX configured to use ‘Microsoft Visual C++ 2013 Professional (C)’ for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:

你可能感兴趣的:(学习笔记,matlab,matlab安装,导出动态链接库)