首页 > 其他 > 详细

Matlab之Simulink之simple model

时间:2015-06-15 18:27:02      阅读:280      评论:0      收藏:0      [点我收藏+]

  

  Use Simulink to model a system and then simulate the dynamic behavior of that system.

    技术分享

 

1  Open

  in Command Window, type simulink, open Simulink Library Browser

2  Create model

  File -> New -> Model, and then save it.

3  Add blocks

  add following blocks from Simulink Library Brower (Ctrl + I)

  • Sine Wave — Generates an input signal for the model

  • Integrator — Processes the input signal

  • Bus Creator — Combines the input signal and processed signal into one signal

  • Scope — Visualizes the signals

4  Connection

  connect them with lines, Ctrl + click is useful when connecting widely separated blocks or when working with complex models

 

5  Simulation parameters

  Simulation -> Model Configuration Parameters, then Solver -> Stop time(20), Solver -> max step size(0.2)

  技术分享  

6  Run and observe

  Simulation -> Run, afte simulation we can view results by double-click the Scope block.

  In Scope toolbar, click Parameters button 技术分享. Select the Style tab and edit figure parameters properties.

  技术分享

 

Matlab之Simulink之simple model

原文:http://www.cnblogs.com/mengdie/p/4578637.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!