主要内容

使用合适的代码生成功能

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

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

codegen 函数

MATLAB® Coder™

请在 Generate Accelerated MEX Function at the Command Line 中尝试此项。

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

MATLAB Coder

MATLAB Coder

请在 Generate Deployable Standalone Code by Using the MATLAB Coder App 中尝试此项。

codegen 函数

MATLAB Coder

请在 Generate Standalone C Static Library at the Command Line 中尝试此项。

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

MATLAB Coder

MATLAB Coder

请参阅加速 MATLAB 算法

codegen 函数

MATLAB Coder

将 MATLAB 代码集成到 Simulink®

MATLAB Function 模块

Simulink

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

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

fiaccel 函数

Fixed-Point Designer™

来自 MATLAB 的代码加速和代码生成 (Fixed-Point Designer) 中了解详细信息。

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

codegen 函数

MATLAB Coder

Integrate External Code That Uses Pointers, Structures, and Arrays 中了解详细信息。

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

coder.ceval 函数

MATLAB Coder

coder.ceval 中了解详细信息。

从 MATLAB 代码生成 HDL

MATLAB Function 模块

Simulink 和
HDL Coder™

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