简单记录下Matlab转C code的步骤(Matlab 2013b): mex -setup 选择编译器%#codegen 提示Matlab分析m代码是否适合生成C代码coder 调用生成C代码的工具设置文件及输入参数(在C中,Matlab会将矩阵都转化为一个struct中的一维指针)build