美赛数学建模专用-第七章 Simulink 基础
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
美赛数学建模专用-
第七章Simulink 基础
Chapter 7: Introduction to Simulink
一.Simulink 初步(Primer of Simulink)
MATLAB Simulink是一个动态仿真系统,用于对动态系统进行仿真和分析,预先模拟实际系统的特性和响应,根据设计和使用要求,对系统进行修改和优化。
Simulink提供了图形化用户界面,只须点击鼠标就可以轻易的完成模型的创建、调试和仿真工作,用户不须专门掌握一种程序设计语言。
Simulink可将系统分为从高级到低级的几个层次,每层又可以细分为几个部分,每层系统构建完成后,将各层连接起来构成一个完整系统。
模型创建完成后,可以启动系统的仿真功能分析系统的动态特性,其内置的分析工具包括各种仿真算法、系统线性化、寻求平衡点等。仿真结果可以以图形方式在示波器窗口显示,也可将输出结果以变量形式保存起来,并输入到MATLAB中以完成进一步的分析。
Simulink可以仿真线性和非线性系统,并能创建连续时间、离散时间或二者混合的系统。支持多采样频率系统。
Simulink
Version 6.0 (R14) 05-May-2004
Model analysis and construction functions.
Simulation
sim - Simulate a Simulink model.
sldebug - Debug a Simulink model.
simset - Define options to SIM Options structure.
simget - Get SIM Options structure
Linearization and trimming.
linmod - Extract linear model from continuous-time system.
linmod2 - Extract linear model, advanced method.
dlinmod - Extract linear model from discrete-time
system.
trim - Find steady-state operating point.
Model Construction.
close_system - Close open model or block.
new_system - Create new empty model window.
open_system - Open existing model or block.
load_system - Load existing model without making model visible.
save_system - Save an open model.
add_block - Add new block.
add_line - Add new line.
delete_block - Remove block.
delete_line - Remove line.
find_system - Search a model.
hilite_system - Hilite objects within a model.
replace_block - Replace existing blocks with a new block.
set_param - Set parameter values for model or block.
get_param - Get simulation parameter values from model.
add_param - Add a user-defined string parameter to a model.
delete_param - Delete a user-defined parameter from a model.
bdclose - Close a Simulink window.
bdroot - Root level model name.
gcb - Get the name of the current block.
gcbh - Get the handle of the current block.
gcs - Get the name of the current system.
getfullname - get the full path name of a block
slupdate - Update older 1.x models to 3.x.
addterms - Add terminators to unconnected ports.
boolean - Convert numeric array to boolean.
slhelp - Simulink user's guide or block help.
Masking.
hasmask - Check for mask.
hasmaskdlg - Check for mask dialog.
hasmaskicon - Check for mask icon.
iconedit - Design block icons using ginput function.
maskpopups - Return and change masked block's popup menu items.
movemask - Restructure masked built-in blocks as masked subsystems.
Library.
libinfo - Get library information for a system.
Diagnostics.
sllastdiagnostic - Last diagnostic array.
sllasterror - Last error array.
sllastwarning - Last warning array.
sldiagnostics - Get block count and compile stats for a model.
Hardcopy and printing.
frameedit - Edit print frames for annotated model printouts.
print - Print graph or Simulink system; or save graph to M-file.
printopt - Printer defaults.
orient - Set paper orientation.
simulink is both a directory and a function.
Copyright 1990-2004 The MathWorks, Inc.