第四章Simulink下数学模型的建立与仿真

更新时间:2023-07-21 21:09:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Matlab仿真技术

第四章

Simulink下数学模型的建立与仿真 下数学模型的建立与仿真

10:26:36 PM

Matlab仿真技术

4.1Simulink模块库简介在commander window 中输入:simulink 打开模块库窗口。

10:26:36 PM

Matlab仿真技术

模块库包括Sources 输出池 Sinks Continuous Discrete Math Operations Logic and bit operations Discontinuites Lookup Table Signals Routing Signal Attributes User-Defined Functions Ports & Subsystem

10:26:36 PM

Matlab仿真技术

4.1.1 信号源模块组 信号源模块组(sources)输入端口(IN) Signal Generator From File Clock Pulse Generator Sine wave Gound Step Ramp Constant

10:26:36 PM

Matlab仿真技术

4.1.2连续模块组(Continuous)Derivative Integrator State-Space Transfer Fun Transport Delay Variable Transport Delay Zero-Pole

10:26:36 PM

Matlab仿真技术

4.1.3 离散模块组Unit Delay Zero-Order Hold Discrete filter Memory Discrete Zero-pole

10:26:36 PM

Matlab仿真技术

4.1.4查表模块组实现各种一维、二维或 高维函数的查表。 Lookup Table Lookup Table(2D) PreLookup Index Search Sine Consine10:26:36 PM

Matlab仿真技术

4.1.5 用户自定义函数模块 user-defined Function用户使用Matlab语言,且利用 该模块组的格式编写出自定义 的模块。 函数计算模块Fcn S-function: 使用matlab、 C/C++等语言编写的函数。

10:26:36 PM

Matlab仿真技术

4.1.6 数学运算模块 Math OperationsGain Real-Image to Complex Complex to Magnitude-angle Math function MinMax Polynomial

10:26:36 PM

Matlab仿真技术

4.1.7 非线性模块 DiscontinuityHit Crossing Relay Sauration Dynamic Wrap to Zero

10:26:36 PM

Matlab仿真技术

4.1.8 输出池模块(Sinks) 输出池模块( )

Out1 Display Scope To File To workspace XY Graph

10:26:36 PM

Matlab仿真技术

4.1.9 信号与系统模块组 Signal RoutingMux Demux From Goto Manual Switch Merge Switch Selector10:26:36 PM

Matlab仿真技术

4.1.10 子系统模块(ports & Subsystm) 子系统模块(

Trigger Enable Model(嵌入simulink子 模块) In1、Out1 Triggered Subsystem Enabled Subsystem For Iterator Subsytem

10:26:36 PM

Matlab仿真技术

4.1.11 常用模块组 commonly used blocks

该模块全部模块都 是从其他模块库复 制,用户可以自己 复制自有的常用模 块。

10:26:36 PM

Matlab仿真技术

4.1.12 其他工具箱与模块库

DSP blockset Communication blockset Gauges blockset Video & Image blockset Aerospace

10:26:36 PM

Matlab仿真技术

4.2 Simulink 模型的建立4.2.1 模型窗口建立 在matlab 命令窗口选择 File|New|Model Or Click toolbox Icon

出现模块编辑窗口: 出现模块编辑窗口:

10:26:36 PM

Matlab仿真技术

4.2.2 模块的连接与简单处理将模块输入至编辑窗口; 将模块进行连接;

重复进行,构成一个信号显示系统 重复进行,

10:26:36 PM

Matlab仿真技术

模块特性参数的修改

Right click the model

10:26:36 PM

Matlab仿真技术

4.2.3 模块参数修改Double click the model 【例】1 s +1

修改成: 修改成:

s 3 + 7 s 2 + 24s + 24 G(s) = 4 s + 10s 3 + 35s 2 + 50 s + 24

10:26:36 PM

Matlab仿真技术

修改过程(1)Double click the model (2)修改参数 numerator coefficients [1 7 24 24] Denominator [ 1 10 35 50 24]

10:26:36 PM

Matlab仿真技术

结果

10:26:36 P

M

本文来源:https://www.bwwdw.com/article/ymcm.html

Top