码迷,mamicode.com
首页 > 其他好文 > 详细

Matlab之Simulink之simple model

时间:2015-06-15 18:30:04      阅读:186      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!