自定义_simulink自定义模块

本文介绍了如何使用MATLAB Function Block、MATLAB System Block、Subsystem Block、C Caller Block和S-Function Block来创建Simulink的自定义模块。通过选择适合的块类型,可以根据已有的MATLAB函数、系统对象、Simulink图表或C代码来定义自定义功能,同时可通过添加Mask来定制块的界面和参数。
摘要由CSDN通过智能技术生成

362571c35259346acc3e4c9375a905b6.png

MATLAB Function Blocks
Matlab函数块
A MATLAB Function block allows you to use the MATLAB language to define custom functionality. These blocks are a good starting point for creating a custom block if:
Matlab函数块允许您使用MATLAB语言来定义自定义功能。这些块是创建自定义块的好起点,如果:
• You have an existing MATLAB function that models the custom functionality.
你有一个现有的MATLAB函数,模型的自定义功能。
• You find it easier to model custom functionality using a MATLAB function than using a Simulink block diagram.
您发现使用MATLAB函数对自定义功能建模比使用Simulink框图更容易。
• The custom functionality does not include continuous or discrete dynamic states.
自定义功能不包括连续或离散的动态状态。
You can create a custom block from a MATLAB function using one of the following types of MATLAB function blocks.
您可以使用下列类型的MATLAB函数块之一从MATLAB函数创建一个自定义块。
• The Interpreted MATLAB Function block allows you to use a MATLAB function to define a SISO block.
解释MATLAB函数块允许您使用MATLAB函数来定义SISO块。
• The MATLAB Function block allows you to define a custom block with multiple inputs and outputs that you can deploy to an embedded processor.
Matlab函数块允许您定义具有多个输入和输出的自定义块,您可以将它们部署到嵌入式处理器。
Each of these blocks has advantages in particular modeling applications. For example, you can generate code from models containing MATLAB Fu

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值