只为小站
首页
域名查询
文件下载
登录
首页
MATLAB的S-Function编写指导.zip
MATLAB的S-Function编写指导.zip
上传者:
jiaojinleicsdn
|
上传时间: 2023-02-15 20:50:51
|
文件大小: 1.03MB
|
文件类型: ZIP
matlab
s-function
S-FUNCTION 概述 .................................................................................................................................... 1 什么是 S-FUNCTION................................................................................................................................ 2 在模型中使用 S-FUNCTION.................................................................................................................... 3 向 S-Function 传递参数..................................................................................................................... 3 何时使用 S-Function.......................................................................................................................... 4 S-FUNCTION 的工作原理........................................................................................................................ 5 Simulink 块的数学关系...................................................................................................................... 5 仿真过程.............................................................................................................................................. 5 S-Function 回调程序.......................................................................................................................... 6 S-FUNCTION 的实现................................................................................................................................ 8 M-文件的 S-Function......................................................................................................................... 8 MEX 文件的 S-function ..................................................................................................................... 8 MEX 文件与 M-文件的 S-function 比较........................................................................................... 9 S-FUNCTION 的概念.............................................................................................................................. 10 直接馈通............................................................................................................................................ 10 动态维矩阵........................................................................................................................................ 10 设置采样时间和偏移量.....................................................................................................................11 S-FUNCTION 范例.................................................................................................................................. 14 M 文件 S-function 范例.................................................................................................................... 15 C S-Function 范例............................................................................................................................ 16 Fortran S-Function 范例.................................................................................................................. 18 C++ S-Function 范例....................................................................................................................... 18 Ada S-Function 范例 ....................................................................................................................... 18 编写 M S-FUNCTION.............................................................................................................................. 19 概述........................................................................................................................................................ 20 S-Function 参数................................................................................................................................ 20 S-Function 的输出............................................................................................................................ 20 定义 S-FUNCTION 块特性..................................................................................................................... 22 处理 S-FUNCTION 参数......................................................................................................................... 22 M 文件的 S-FUNCTION 范例................................................................................................................. 23 范例 1—— 简单的 M 文件 S-Function ........................................................................................... 23 范例 2—— 连续状态 S-Function .................................................................................................... 25 范例 3—— 离散状态 S-Function .................................................................................................... 27 范例 4—— 混合系统 S-Function .................................................................................................... 28 范例 5—— 变步长 S-Function ........................................................................................................ 31 使用 C 语言编写 S-FUNCTION ............................................................................................................. 33 概述........................................................................................................................................................ 34 创建 C MEX S-Function.................................................................................................................. 35 自动生成 S-FUNCTION.......................................................................................................................... 36 配置生成的 S-Function.................................................................................................................... 37 S-Function Builder 如何生成 S-Function...................................................................................... 37 设置 include 路径 ............................................................................................................................. 37 S-FUNCTION BUILDER 的对话窗........................................................................................................... 39 Initialization 选卡.............................................................................................................................. 39 Data Properties 选卡 ....................................................................................................................... 40 Libraries 选卡.................................................................................................................................... 42 Outputs 选卡..................................................................................................................................... 43 Continuous Derivatives 选卡.......................................................................................................... 45 Discrete Update 选卡 ...................................................................................................................... 46 Build Info 选卡 .................................................................................................................................. 47 一个基本的 C MEX S-FUNCTION 范例 ............................................................................................... 48 定义与包含........................................................................................................................................ 49 回调函数的实现................................................................................................................................ 50 Simulink/Real-Time Workshop 接口 ............................................................................................. 51 Building Timestwo 范例................................................................................................................... 51 C S-FUNCTION 模板.............................................................................................................................. 52 S-Function 源文件必需的内容........................................................................................................ 52 SimStruct........................................................................................................................................... 53 编译 C S-Function............................................................................................................................ 53 SIMULINK 如何与 C S-FUNCTION 相互作用 ........................................................................................ 54 进程层面............................................................................................................................................ 54 数据层面............................................................................................................................................ 56 编写回调函数........................................................................................................................................ 59 将 LEVEL 1 C MEX S-FUNCTION 转换到 LEVEL 2 .............................................................................. 60 创建 C++ S-FUNCTION.......................................................................................................................... 63 创建 ADA S-FUNCTION......................................................................................................................... 64 创建 FORTRAN S-FUNCTION.............................................................................................................. 65 实现块特性................................................................................................................................................ 67 对话框参数............................................................................................................................................ 68 可调参数............................................................................................................................................ 68 运行参数................................................................................................................................................ 70 创建运行参数.................................................................................................................................... 70 更新运行参数.................................................................................................................................... 71 创建输入和输出端口............................................................................................................................ 72 创建输入端口.................................................................................................................................... 72 创建输出端口.................................................................................................................................... 73 输入的标量扩展................................................................................................................................ 74 掩码多端口 S-Function.................................................................................................................... 75 自定义数据类型.................................................................................................................................... 76 采样时间................................................................................................................................................ 77 基于块的采样时间............................................................................................................................ 77 指定基于端口的采样时间................................................................................................................ 79 基于块与基于端口的混合采样时间 ................................................................................................ 81 多速率 S-Function 块....................................................................................................................... 82 多速率 S-Function 块的同步........................................................................................................... 83 工作向量................................................................................................................................................ 84 工作向量与过零检测........................................................................................................................ 85 包括指针工作向量的范例................................................................................................................ 85 内存分配............................................................................................................................................ 86 FUNCTION-CALL 子系统........................................................................................................................ 87 错误处理................................................................................................................................................ 89 防超程代码........................................................................................................................................ 89 SsSetErrorStatus 的终止条件 ........................................................................................................ 90 数组边界检查.................................................................................................................................... 90 S-FUNCTION 范例.................................................................................................................................. 91 连续状态的 S-Function 范例........................................................................................................... 92 离散状态的 S-Function 范例........................................................................................................... 93 混合系统的 S-Function 范例........................................................................................................... 93 变步长的 S-Function 范例............................................................................................................... 94 过零检测的 S-Function 范例........................................................................................................... 94 时变连续传递函数的 S-Function 范例........................................................................................... 94
文件下载
立即下载
资源详情
[{"title":"( 1 个子文件 1.03MB ) MATLAB的S-Function编写指导.zip","children":[{"title":"MATLAB的S-Function编写指导.pdf <span style='color:#111;'> 2.35MB </span>","children":null,"spread":false}],"spread":true}]
评论信息
其他资源
应用密码学手册.中文版(Alfred.Menezes).
SystemVerilog Assertions应用指南中文 +英文 +随书代码
自考数据结构02331课后习题答案
ORBvoc.txt
setup_win.py 用于win10下text-detection-ctpn编译
NPOI.dll打包下载
数字图像处理冈萨雷斯第三版课后习题答案
车床主轴箱课程设计
openssl.cnf
华硕飞行堡垒 FX53VD完美黑苹果EFI文件
C#汉字转拼音类库NPinyin附带使用说明及实例
在线零售销售数据
宏杉科技研发部2016校园招聘笔试题B卷
python京东茅台脚本.zip
Scala Design Patterns.pdf
重庆大学《操作系统》期末试卷(含答案).pdf
mpu6050(1).zip
算法基础 第8章 广度优先搜索-2021-02-17.pdf
3-mathbook.zip
C#酒店管理系统完整版
uml类图例子
Brodatz纹理图像库以及人工合成纹理图
坐标点批量导入CAD转换便捷工具
《unixLinux下的Curses库开发指南》综合示例程序 -unixlinux develop guide with Curses libraryinstances program
web销售管理系统
免责申明
【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
个人信息
点我去登录
购买积分
下载历史
恢复订单
相关资源标签
热门下载
IBM.ILOG.CPLEX.Enterprise.Server.v12.10.0.Win64.rar CPLEX下载
SSM外文文献和翻译(毕设论文精品).doc
拾荒者扫描器.rar
非线性本构关系在ABAQUS中的实现.pdf
Alternative A2DP Driver 1.0.5.1 无限制版
Academic+Phrasebank+2021+Edition+_中英文对照.pdf
CPLEX12.8学术版安装包:cplex_studio128.win-x86-64.exe
(推荐)小爱触屏音箱LX04_2.34.5-官改-(开发版)SP5
MVDR,Capon波束形成DO估计.zip
RX560 bios合集(请务必注意显存品牌和大小以及是否需要6pin!)含刷新工具.zip
voc车辆检测数据集(已处理好,可直接训练)
全国河流水文站坐标.xls
python大作业--爬虫(完美应付大作业).zip
股票价格预测-LSTM-TCN-GBDT:使用四种算法(LSTM,TCN,GRU,GBDT)进行股票价格的预测和预测结果的检验。有四种算法(LSTM,TCN,GRU,GBDT)用于预测股价并检验预测结果-源码
刚萨雷斯《数字图像处理》第四版答案.pdf
最新下载
浙大概率论.zip
天思ERP后台数据库表与字段对照表
QualcommAtheros-QCA9377-WiFi-驱动程序-源码
海能达客户端编程软件统一工具(5.01)更新11月23号
teamcenter10二层、四层部署安装手册(详细)
C#借助EmguCV控制摄像头
医学影像报告系统(单机版).rar
nexus-3.6.0-02
大连理工情感词典,程度副词典,否定词典,停用词典
Windows Longhorn 4074 Vmware显卡驱动