New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Felipe McLaughlin
Felipe McLaughlin
OK State
GPA 4.0

Gary Yen

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Gary Yen
Class Notes
25 ?




Popular in Course

Popular in Mechanical and Aerospace Engineering

This 0 page Class Notes was uploaded by Felipe McLaughlin on Sunday November 1, 2015. The Class Notes belongs to MAE 3723 at Oklahoma State University taught by Gary Yen in Fall. Since its upload, it has received 17 views. For similar materials see /class/232794/mae-3723-oklahoma-state-university in Mechanical and Aerospace Engineering at Oklahoma State University.

Similar to MAE 3723 at OK State

Popular in Mechanical and Aerospace Engineering


Reviews for SYSTEMS I


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 11/01/15
ECENMAE 3723 Systems MATLAB Lecture 2 Lecture Overview ow to use Simulink Getting Start with Simulink Building a model xample 1 Differential Equations xample 2 Transfer Function reating Subsystems seful Information What is Simulink 1 A software package for modeling simulating and analyzing dynamic systems Supports linear and nonlinear systems modeled in continuous time sample time or a hybrid of the two Systems can also be multirate ie different parts that are sampled or updated at different rates What is Simulink 2 For modeling it provides a graphical user interface GUI for building models as block diagrams using clickanddrag mouse operations Can build models in hierarchical fashion using both topdown and bottomup approaches You can simulate analyze the output results explore revise your models and have FUN Lecture Overview What is Simulink S rw 5 a 5364 V Example 1 Differential Equations Example 2 Transfer Function Creating Subsystems Useful Information Start a Simulink Session Click on the SIMULINK icon on toolbar Type simulink on Matlab command window Simulink Library Browser SEARCH window BLOCK set for model construction LIBRARY Create a New Model Workspace where you construct your model Lecture Overview What is Simulink by m3 hr u gt1 r u hr u i39 f 53fti5 1 U r 39 39 L m H 39 39 m gt433 agar xwgats ibl quotNew r r v u g 3 2r u 4 5 71 I a r a is 5mm Example 1 Differential Equations Example 2 Transfer Function Creating Subsystems Useful Information Building a Model Simulink Block Diagram pictorial model of a dynamic system Each block represents an elementary dynamic system that produces an output either continuous or discrete output Lines represent connections of block inputs to block outputs y Input gt Ste es gt Output Building a Model 2 The following steps will guide you to construct a systemmodel STEP 1 Creating Blocks STEP 2 Making connections STEP 3 Set Parameters STEP 4 Running Simulation Building a Model 3 Step 1 Creating Blocks Hm 39 L J un lled Hi m r This is the Sine Wave block is from the Sources library a 3mm Number a WesW s a Building a Model 4 Step 1 Creating Blocks The Gain block is from the Math library These are from the Sinks library Building a Model 5 2 connections a U7 is E E w in u a n Building a Model 6 3 Set Parameters Building a Model 7 Step 4 Running Simulation Refine Lam 1 mi H y You can change the stop timequot and then click the OK buttonquot Building a Model 8 View output via Scope block Am Yellow Int sine wave Purple Output sine wave with gain of 5 Building a Model 9 FigumNnJ am Edit View Insert Tunis Wian Heip iu u iikAzi View output workspace A 0mm Sine Wave Wm gain M5 5 inpu39 Si Wm gen 1 Uwlt39 D D wumrih g D 39 MATLAB uuQ ouIZYaWu GpAa L Lecture Overview What is Simulink How to use Simulink Getting Start with Simulink Building a model v r m llEiamp le L393Transfe l Creating Subsystems Useful Information Example 1Differential Equations 1 Example of a dynamic system A mass springdamper system ft The Mathematical model of the system is describe by M 56 BX Kxft Lets M2kg B 2 Nsm K2 Nm K 3 x2x 2xft Example 1Differentia Equations 2 Use Simulink to simulate the step response of the system ie 1 x E 2x 2x STEP 1 Creating Blocks fa N Unit Step Input 1 0 Time s Select BLOCK set Location in Simulink Library Step Sources Sum Math Operation Gain Math Operation Integrator Continuous Scope amp To Workspace Sinks Example 1Differentia Equations 2 STEP 2 Making connections Step Scope simnut El Tc 39L l39mhspace Example 1Differential Equations 3 STEP 3 Set Parameters Iquot Step I El To39I I39oiltspace mg i K h Note Assume all initial conditions O I Example 1Differentia Equations 4 STEP 4 Running Simulation Example 1Differential Equations 5 Step Response for the massspringdamper system example 1521 Ian s thdaw Hatv as t W n H l tkAIUBE 39 5 39 El 39x cope D7 StepResponseuHheMaserpvmgrPampevSystemExamp e H tp Et DE ll U5 U4 E g U2 El 1 Tirnaclfset u 5 1U 15 2m 25 3 Hmes Output from Scope block Plot system response Lecture Overview What is Simulink How to use Simulink Getting Start with Simulink Building a model Example 1 Differential Equations reating Subsystems Useful Information Example 2 Transfer Function 1 Use the same massspringdamper system example and simulate the response using transfer function approach 562 2339c 2xft The transfer function of the equation assume all initial conditions 0 X S 1 2 F S 25 25 2 Example 2 Transfer Function 2 STEP 1 Creating Blocks Select BLOCK set Location in Simulink Library Step Sources Transfer Function Continuous Scope amp To Workspace Sinks Example 2 Transfer Function 3 STEP 2 Making connections f i x5 1m Tranzfer Fcn S3930P Step simnut x Tc 39IILI39IJrlEpaca Example 2 Transfer Function 4 STEP 3 Set Parameters m gt Example 2 Transfer Function 5 STEP 4 Running Simulation Example 2 Transfer Function 6 Same output as before Slide 21 GE Scope H HPB H Et 1m 15 2m 25 3 Hmes 5 Time clfset Output from Scope block Plot system response Lecture Overview What is Simulink How to use Simulink Getting Start with Simulink Building a model Example 1 Differential Equations waa Transfer Function 13 13 quotI 1339 Useful Information Creating Subsystems 1 Subsystem similar to Subroutine Advantage of Subsystems Reduce the number of blocks display on the main window ie simplify the model Group related blocks together ie More organized Can create a hierarchical block diagram ie you can create subsystems within a subsystem Easy to check for mistakes and to explore different parameters Creating Subsystems 2 Create Subsystem using model in Example 1 STEP 1 Creating Blocks Main window El untitled Ready File Edit Iview Simulation Formal Tools Help E 39 ii a 39ge 3 i F Hanna v If E Scope Step Subsystem IIIEIIII To Weriapaee This is the Subsystem block is 39 from the Subsystems library 39 Creating Subsystems 3 STEP 2 Double click Subsystem block and create a model in the Subsystem block u a m mnln39mun t 139 m Creating Subsystems 4 STEP 3 Making connections Main window E diffeqs u hsys File Edit 39u39iew Simulation Format Tools Help El nFquot n g fi39aquoti 39 a I h C Normal vi Sum I E IL From Sum me B 1cm quot39 me K Scope i Subsystem X To Wod pace Ready hum ode45 Creating Subsystems 5 STEP 4 Set Parameter Main window STEP 5 Running Simulation Then view output response Output from Scope block Lecture Overview What is Simulink How to use Simulink Getting Start with Simulink Building a model Example 1 Differential Equations Example 2 Transfer Function Creating Subsystems Useful Information 1 Ramp Function untitled quot File E39jgi 3926439 Siruuyiai39num Fnrrrrat TIL25L Hap me rniasai eineaaip tug Mm 7 Block Paralneters Ran1p Z V Fiamp mask link I Dutput a ramp Signal starting at the Specified time Ramp n Slope i1 lt Set Slope Start time it Set Start time for Ramp function Initial output Interpret vector parameters as 1D EIK ii Cancel Help Apply Ready 100235 E1345 Useful Information 2 Unit Step Function or Impulse 7 inievwei vecim Daiameieis est D r inieiDiei veciui Daiameiei a iD Useful Information 3 To run programs have to be in the current active directory or in a directory in the path goto Eile 9 Set path9 To copy the SIMULINK Model from Simulink Workspace and add to report Edit 9 Copy model to clipboard Need help on SIMULINK At Simulink Library Browser 9 Click Help


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Amaris Trozzo George Washington University

"I made $350 in just two days after posting my first study guide."

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.