通过 System object 实现模块
MATLAB System 模块使用 System object 在 Simulink 中实现 MATLAB® 算法。在开始使用 MATLAB System 模块之前,必须有某模块与 System object 关联。System object 是一种特殊的 MATLAB 类,它们专为动态系统的实现和仿真而设计。有关实现和创建 System object 的信息,请参阅创建 System object。
模块
MATLAB System | 在模型中包含 System object |
主题
- MATLAB System 模块
使用 System object 实现您自己的算法。
- 步骤 1: Define System Object for Use in Simulink
- 步骤 2: Customize MATLAB System Block Appearance
- 步骤 3: Customize MATLAB System Block Dialog
- 步骤 4: Specify Output Characteristics of MATLAB System Block
- 步骤 5: Specify Sample Time for MATLAB System Block System Objects
- 步骤 6: Create Moving Average Filter Block with System Object
- Mapping System Object Code to MATLAB System Block Dialog Box
The System object source code controls the appearance of the block dialog box.
- Share Data Between MATLAB System Block and Other Blocks
Share data between MATLAB System and other blocks using the
global
keyword and the Data Store Memory block orSimulink.Signal
object. - Call Simulink Functions from MATLAB System Block
Learn to call a Simulink function from a MATLAB System block.
- Call Python Function Using MATLAB Function and MATLAB System Block
This example shows how to call a Python® function in Simulink® that sorts random numbers using a Python® sorting function and two different blocks: the MATLAB Function block and MATLAB System block.
疑难解答
Troubleshoot System Objects in Simulink
Use these guidelines to troubleshoot System objects in Simulink.