在MATLAB命令行中输入:deploytool,打开如下界面,选择Library Compiler
对于C#,选择.NET Assembly,点击右侧的“+”加号,添加要导出的函数
可添加多个函数
下面的类名中输入即为导出后类的名称
点击设置按钮,输入参数-C,参数的具体含义如下
| Option | Description | Comment |
|---|---|---|
| -c | Generate C wrapper code. | Equivalent to -T codegen |
| -C | Direct mcc to not embed the deployable archive in generated binari |