Main Content

使用合适的代码生成功能

如需执行以下操作...使用...需要的产品如需了解详情...

生成 MEX 函数,用于验证生成的代码

codegen 函数

MATLAB® Coder™

请在 通过生成 MEX 函数加快 MATLAB 算法的执行速度 (MATLAB Coder) 中尝试此项。

基于 MATLAB 算法生成可读、高效且紧凑的代码,以部署到台式机和嵌入式系统。

MATLAB Coder

MATLAB Coder

请在 使用 MATLAB Coder 生成 C 代码 (MATLAB Coder) 中尝试此项。

codegen 函数

MATLAB Coder

请在 通过命令行生成 C 代码 (MATLAB Coder) 中尝试此项。

生成 MEX 函数以提高 MATLAB 算法的执行速度

MATLAB Coder

MATLAB Coder

请参阅加速 MATLAB 算法 (MATLAB Coder)

codegen 函数

MATLAB Coder

将 MATLAB 代码集成到 Simulink®

MATLAB Function 模块

Simulink

请在 Call MATLAB Function Files in MATLAB Function Blocks 中尝试此项。

加快定点 MATLAB 代码的执行速度

fiaccel 函数

Fixed-Point Designer™

Code Acceleration and Code Generation from MATLAB (Fixed-Point Designer) 中了解详细信息。

将自定义 C 代码集成到 MATLAB 中,并生成高效、可读的代码

codegen 函数

MATLAB Coder

从生成的代码中调用自定义 C/C++ 代码 (MATLAB Coder) 中了解详细信息。

将自定义 C 代码集成到从 MATLAB 生成的代码中

coder.ceval 函数

MATLAB Coder

coder.ceval (MATLAB Coder) 中了解详细信息。

从 MATLAB 代码生成 HDL

MATLAB Function 模块

Simulink 和
HDL Coder™

www.mathworks.com/
products/slhdlcoder
上了解详细信息。