Introduction to the MATLAB SIMULINK Program

Size: px
Start display at page:

Download "Introduction to the MATLAB SIMULINK Program"

Transcription

1 Introduction to the MATLAB SIMULINK Program Adapted from similar document by Dept. of Chemical Engineering, UC - Santa Barbara MATLAB, which stands for MATrix LABoratory, is a technical computing environment for high-performance numeric computation and visualization. SIMULINK is a part of MATLAB that can be used to simulate dynamic systems. To facilitate model definition, SIMULINK adds a new class of windows called block diagram windows. In these windows, models are created and edited primarily by mousedriven commands. Part of mastering SIMULINK is to become familiar with manipulating model components within these windows. The purpose of this tutorial is to introduce you to SIMULINK and give you experience simulating dynamic systems. In the first part of this tutorial, you will use SIMULINK to generate an open-loop set-point and load response for a linear process. In the second part of the tutorial, you will generate the closed-loop set-point and load responses. Log onto one of the PC computers. Click on the Microsoft Start button in the bottom corner of your screen and MATLAB will be listed under Programs. Open MATLAB. To invoke SIMULINK, type simulink at the MATLAB prompt which is indicated by >> in Figure 1 below. A new window titled simulink will open somewhere on the screen. Figure1. Initial Matlab Screen

2 Figure 2. Simulink Library Browser You will have to right click on the Simulink block to make the menu on the right viewable. Once the simulink window block on the right is open, you are ready to build a SIMULINK model. This tutorial is divided into two sections. In the first section, you will build a model of the open-loop system for a linear process and determine the unit setpoint and unit load responses. In the second section, you will build a closed-loop model of the same process. After the closed-loop model is constructed, you should simulate the unit load response and the unit set-point response for two different PID controller tuning methods, ITAE (set-point) and ITAE (load). The following steps will guide you through the discussed tasks. Construction of an Open-Loop Block Diagram (Chapters 3,4) 1. Open a new empty system window by selecting New followed by Model from the File menu in the simulink window. The new window will be titled untitled. You will build your closed loop model inside this window. Save the empty model by choosing Save from the File menu in the untitled window. Name the model, examplesim. From this point on, the model will be referred to as examplesim. 2. Look at the list below simulink in the Simulink Library Browser window. Click on Sources and select the clock from the new list and drag the clock block from the Simulink Library Browser (Figure 2) to the examplesim window. Click

3 on the Sinks block in the simulink window and drag the To Workspace block to examplesim. Connect the output of the clock block to the input of the To Workspace block. Double-click on the To Workspace block to open its dialog box. Change Variable name from simout to t. Set the save format shown at the bottom of the dialog box as Array. If you have followed the above steps correctly, the model will look like this: Figure 3. Construction of Time Vector The simple model above will output a time vector t to the workspace which can be used with the plot command. As you have seen, double-clicking on a block will open a window filled with more blocks or open the dialog box of the block. The dialog box is used to specify parameters that govern the operation of the block. 3. Copy the Transfer Fcn and Transport Delay blocks from the Continuous block, respectively, to Examplesim. Connect the output of the Transfer Fcn block to the input of the Transport Delay block. Click on the Transfer Fcn label and rename the Transfer Fcn block Process TF. This block represents the process. Note that in this problem, the process is G(s) = G v G p G m, not G p. Open the dialog box of Process TF by double-clicking on it. Specify Numerator as [2] and Denominator as [ ]. This indicates the transfer function 2/(50s s + 1). The Transfer Fcn block requires specification of vectors for the numerator and denominator. The vector elements are treated as the coefficients of descending powers of s in the polynomials representing the numerator and denominator of the transfer function. To see the denominator polynomial of s completely displayed in the block s icon, you may have to resize the block s icon. Double-click on the Transport Delay and set Time delay to 1. Note that the Transport Delay block can be used to represent other types, such as measurement delay. 4. Copy the Process TF and Transport Delay blocks and place the copies slightly above the originals. The copies will automatically change names to Process TF1 and Transfer Delay1. No two blocks can have the same name in on SIMULINK window. To quickly copy the original blocks, select both of them and drag them using the right mouse button. Rename the Process TF1 block Load TF. In this example G p and G L are the same, so the Numerator and Denominator parameters in the dialog box of Load TF are not changed (See Figure 4). 5. Place a copy of the Sum block, located in the Math menu, to the right of the Transport Delay block. Double click above the sum block and label the block Sum. Connect the output from each Transport Delay block to the input of the

4 Sum block. The number of inputs and their polarity can be modified from the dialog box. Later in the tutorial you will be required to do this. 6. Copy the To Workspace block to the right of the Sum block and connect the output of the Sum block to the new To Workspace block. Double-click on the new block and set Variable name to C. The model developed to this point is a model of the open-loop system. 7. Copy a Step Input block from the Sources menu, place the block to the left of Load TF and connect it to the input of Load TF. The Step Input block generates a step function. The step time (time at which the step occurs), initial value, and final value of the function can be specified. For now, open its dialog box and set the step time, initial value, and final value to zero, i.e., disabling the block. Rename the block L. 8. Place a copy of L to the far left of Process TF and rename the new block U. Connect U to the input of Process TF. Double-click on U and set Step time to 0, Initial value to 0 and Final value 1. U will generate a unit step function in the manipulated variable at time zero. The model developed to this point is a model of the open-loop system. It should look similar to the model below. Figure 4. Open-Loop Block Diagram 9. Now we are ready to simulate the open-loop response of the system. To select the integration technique and parameters to be used during simulations, pull down the Simulation menu and choose Parameters. A dialog box is opened showing all the simulation parameters that can be modified. Set the Stop Time to 50 and the Max Step Size to 1. Because the system is easy to numerically integrate, SIMULINK can and will take integration step sizes equal to the default value of 10. If this occurs, the appearance of the response will not be smooth. By setting Max Step Size to 1, C will be output to the workspace each time interval and the simulated response will be smoother. Start the simulation by selecting Start from Simulation menu. The resulting C and t variables in the workspace will be for the open-loop unit set-point response.

5 10. Once a simulation has been completed, the resulting data can be manipulated and analyzed using MATLAB. Select the MATLAB command window and type plot(t,c) to view the response. The plot command opens a MATLAB Figure window and generates a plot inside the window. To add x and y axis labels and a title type xlabel( Time ) ylabel( C ) title( Step Response (Open-Loop) ) Figure 5. Unit step response of open-loop system Figure 5 shows the resulting plot. You can add title or axes labels simply by inputting characters onto the figure window. To do this you need to first click the A button on top of the window, then double-click on the place where you want to put your words. A flashing cursor will soon appear telling you that you can type now. 11. Now simulate the open-loop unit load response. Double-click on U and set Final value to 0. This eliminates the unit step in the manipulated variable. Doubleclick on L and set Step time to 0 and Final value to 1. This creates a unit load step. Again, select Start from the Simulation to begin the simulation. Type plot(t,c)to view the response. You can see that the old t and C were replaced. The old x-axis label can be quickly added hitting the up arrow key to toggle through all past commands until xlabel( Time ) is displayed. Hit return to execute this command. Repeat this technique for the ylabel and title commands, except edit the title command by replacing Step Response (Open-Loop) with Load Response (Open-Loop). From the MATLAB prompt, commands can only be edited using the arrow keys; using

6 the mouse will not work. Figure 6 shows the resulting plot. Notice that the openloop set-point response and load response are the same. Why is this expected? Figure 6. Unit load response of open-loop system 12. If you are not continuing to the next section, save the file examplesim so that you can use it in constructing a closed-loop block diagram. Construction of Closed-Loop Block Diagram 1. Open the file examplesim if it is not already open. 2. Click on the connection between the U block and Process TF block and delete it. Rename the U block to R. This block will be used to produce a step change in the set-point. 3. Place a copy of the Sum block to the right of R. Double click above the sum block icon and label the block Sum1. Open its dialog box and change the ++ sequence to +-. Instantly, the block s icon will reflect this change. The top input will have a + located to the right of it while the bottom input will have a located above it. Therefore, the output of Sum1 will be the top input minus the bottom input. Connect the output of R to the top input of Sum1. Also, connect the output from Sum to the bottom input of Sum1. This can be done by clicking on the bottom input of Sum1 and dragging the arrow to the output of Sum. The output of Sum1 is the error between the set-point, R, and the controlled variable, C. Your model should look like figure 7:

7 Figure 7. Partially Completed Closed Loop Diagram 4. Now close the Simulink block menu and open the Simulink Extras block by right clicking on the block labeled Simulink Extras. Click on the Additional Linear block, then select the PID Controller and drag it to the right of the newest sum block. Connect the output of the Sum1 to the input of PID controller and the output of PID controller to the input of Process TF. Double-click on the PID controller and enter the ITAE (load) controller settings given in Table 12.5 on p. 289 of your textbook. Please note that SIMULINK PID controller settings are P, I, and D where P = K c, I = K c /τ i, and D = K c *τ D, so numerical values of P, I, and D should reflect these definitions. The model you have developed represents the closed-loop system. Your model should now look similar to figure 8: Figure 8. Closed-Loop Diagram

8 Note that some text has been added to the block diagram shown on the previous page. Simply by double-clicking on a point in examplesim and typing, text is added to the diagram at the point where you clicked. The E, P, X1, X2 text in the block diagram have no effect on its operation. 5. Now we are ready to simulate the closed-loop response of the system. We will start with the set-point response. Click on block L and set the Final value to 0 so that no step in the load will occur. Create a step in the set-point by clicking on R and setting the Final Value to 1. Start the simulation by selecting Start from Simulation menu. The resulting C and t variables in the workspace will be for the unit set-point response, because L (disturbance) has been disabled. 6. Select the MATLAB command window and type the following commands to obtain a labeled plot of the response. plot(t,c) xlabel( Time ) ylabel( C ) title( Set-point Response ) Figure 9 shows the resulting plot. Once a new simulation is performed, SIMULINK will write new values to t and C. To avoid losing the old values, type t1=t; C1=C; to define the new variables t1 and C1. Figure 9. Unit set-point response for ITAE (load) settings. 7. Now simulate the unit load response. Double-click on R and set Final value to 0. Double-click on L and set Final value to 1. Again, select Start from the Simulation to begin the simulation. Type plot(t,c)to view the response. Label this plot the same way as the previous one except replace the title Set-

9 point Response with Load Response. Figure 10 shows the resulting plot. Figure 10. Unit load response for ITAE (load) Before starting another simulation, type t2=t; C2=C; 8. Now simulate the unit load response for ITAE (set-point) by entering the set-point controller settings into the PID controller block and simulating. Type t3 = t; C3 = C; after the simulation has ended. 9. Next simulate the unit set-point response for ITAE (set-point) by setting Final value to 0 in L and Final value to 1 in R and simulating. 10. To reproduce Figure 12.8 on page 290 of the textbook, enter the following set of commands at the MATLAB prompt: subplot(211) plot(t1, C1, -, t, C, -- ) xlabel( Time ) ylabel( C ) title( Set-point Response ) subplot(212) plot(t2, C2, -, t3, C3, -- ) xlabel( Time ) ylabel( C ) title( Load Response ) The subplot(mnp) command breaks the Figure window into an m-by-n matrix of small rectangular panes and makes the p-th pane active. The plot command

10 following subplot will place the plot in the active pane. To learn more, type help subplot. The plot(x1, y1, linetype1, x2, y2, linetype2,...) command plots x1 vs. y1 with linetype1, x2 vs. y2 with linetype2 and, so on, on the same plot. To learn more, type help plot. For the set of commands listed above, Figure 11 shows the resulting MATLAB Figure window. Figure 11. Comparison of PID controllers with ITAE settings for Example Solid line ITAE (load); Dashed line ITAE (set-point) Adding the legend can be tedious. Two commands, which can be used to generate a legend, are text and gtext. If you feel motivated, type help text and help gtext to learn how.

Introduction to Simulink

Introduction to Simulink Introduction to Simulink Mikael Manngård Process Control Laboratory, Åbo Akademi University February 27, 2014 Simulink is an extension to MATLAB that is used for modeling and simulation of dynamic systems.

More information

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX 1) Objective The objective of this lab is to review how to access Matlab, Simulink, and the Communications Toolbox, and to become familiar

More information

Simulink Basics Tutorial

Simulink Basics Tutorial 1 of 20 1/11/2011 5:45 PM Starting Simulink Model Files Basic Elements Running Simulations Building Systems Simulink Basics Tutorial Simulink is a graphical extension to MATLAB for modeling and simulation

More information

Introduction to Simulink

Introduction to Simulink Introduction to Simulink by Vinay S. K. Guntu 4310 Feedback Control Systems 1 Simulink Basics Tutorial Simulink is a graphical extension to MATLAB for modeling and simulation of systems. Advantages 1)

More information

Simulink Basics Tutorial

Simulink Basics Tutorial Simulink Basics Tutorial Simulink is a graphical extension to MATLAB for modeling and simulation of systems. One of the main advantages of Simulink is the ability to model a nonlinear system, which a transfer

More information

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips Cal Poly San Luis Obispo Mechanical Engineering ME Mechanical Control Systems Matlab/Simulink Hints and Tips Ridgely/Owen, last update Jan Building A Model The way in which we construct models for analyzing

More information

Introduction to Simulink

Introduction to Simulink Introduction to Simulink There are several computer packages for finding solutions of differential equations, such as Maple, Mathematica, Maxima, MATLAB, etc. These systems provide both symbolic and numeric

More information

SIMULINK Tutorial. Select File-New-Model from the menu bar of this window. The following window should now appear.

SIMULINK Tutorial. Select File-New-Model from the menu bar of this window. The following window should now appear. SIMULINK Tutorial Simulink is a block-orientated program that allows the simulation of dynamic systems in a block diagram format whether they are linear or nonlinear, in continuous or discrete forms. To

More information

ECE-205 Lab 1. Introduction to Simulink and Matlab

ECE-205 Lab 1. Introduction to Simulink and Matlab ECE-205 Lab 1 Introduction to Simulink and Matlab Throughout this lab we will focus on determining the behavior of a first order system written in the standard form dy( t) y( t) Kx( t) dt where xt () is

More information

16.06/16.07 Matlab/Simulink Tutorial

16.06/16.07 Matlab/Simulink Tutorial Massachusetts Institute of Technology 16.06/16.07 Matlab/Simulink Tutorial Version 1.0 September 2004 Theresa Robinson Nayden Kambouchev 1 Where to Find More Information There are many webpages which contain

More information

Experiment 3. Getting Start with Simulink

Experiment 3. Getting Start with Simulink Experiment 3 Getting Start with Simulink Objectives : By the end of this experiment, the student should be able to: 1. Build and simulate simple system model using Simulink 2. Use Simulink test and measurement

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

Session 3 Introduction to SIMULINK

Session 3 Introduction to SIMULINK Session 3 Introduction to SIMULINK Brian Daku Department of Electrical Engineering University of Saskatchewan email: daku@engr.usask.ca EE 290 Brian Daku Outline This section covers some basic concepts

More information

Introduction to Matlab Simulink. Control Systems

Introduction to Matlab Simulink. Control Systems Introduction to Matlab Simulink & their application in Control Systems ENTC 462 - Spring 2007 Introduction Simulink (Simulation and Link) is an extension of MATLAB by Mathworks Inc. It works with MATLAB

More information

MATLAB Premier. Middle East Technical University Department of Mechanical Engineering ME 304 1/50

MATLAB Premier. Middle East Technical University Department of Mechanical Engineering ME 304 1/50 MATLAB Premier Middle East Technical University Department of Mechanical Engineering ME 304 1/50 Outline Introduction Basic Features of MATLAB Prompt Level and Basic Arithmetic Operations Scalars, Vectors,

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

Experiment 8 SIMULINK

Experiment 8 SIMULINK Experiment 8 SIMULINK Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

[ MATLAB ] [ Resources ] PART TWO: SIMULINK

[ MATLAB ] [ Resources ] PART TWO: SIMULINK Página 1 de 15 [ MATLAB ] [ Resources ] PART TWO: SIMULINK Contents Introduction Getting Started Handling of Blocks and Lines Annotations Some Examples NOTE: This tutorial is based on Simulink Version

More information

Note 10 Introduction to MATLAB & SIMULINK

Note 10 Introduction to MATLAB & SIMULINK Note 10 Introduction to MATLAB & SIMULINK Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada 1 1 Introduction to MATLAB MATLAB stands for the

More information

Assignment 2 in Simulation of Telesystems Laboratory exercise: Introduction to Simulink and Communications Blockset

Assignment 2 in Simulation of Telesystems Laboratory exercise: Introduction to Simulink and Communications Blockset Mid Sweden University Revised: 2013-11-12 Magnus Eriksson Assignment 2 in Simulation of Telesystems Laboratory exercise: Introduction to Simulink and Communications Blockset You are expected to conclude

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

SIMULINK A Tutorial by Tom Nguyen

SIMULINK A Tutorial by Tom Nguyen Introduction SIMULINK A Tutorial by Tom Nguyen Simulink (Simulation and Link) is an extension of MATLAB by Mathworks Inc. It works with MATLAB to offer modeling, simulating, and analyzing of dynamical

More information

Lecture 10: Simulink. What is Simulink?

Lecture 10: Simulink. What is Simulink? Lecture 10: Simulink Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 10. What is Simulink? Simulink is a tool for modeling, simulating

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

Getting Started with DADiSP

Getting Started with DADiSP Section 1: Welcome to DADiSP Getting Started with DADiSP This guide is designed to introduce you to the DADiSP environment. It gives you the opportunity to build and manipulate your own sample Worksheets

More information

Experiment 6 SIMULINK

Experiment 6 SIMULINK Experiment 6 SIMULINK Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user

More information

BME 5742 Bio-Systems Modeling and Control

BME 5742 Bio-Systems Modeling and Control BME 5742 Bio-Systems Modeling and Control Lecture 4 Simulink Tutorial 1: Simulation of the Malthusian and Logistic Models Model Set Up, Scope Set Up Dr. Zvi Roth (FAU) 1 Getting started In the MATLAB command

More information

ELEC ENG 4CL4 CONTROL SYSTEM DESIGN

ELEC ENG 4CL4 CONTROL SYSTEM DESIGN ELEC ENG 4CL4 CONTROL SYSTEM DESIGN Lab #1: MATLAB/Simulink simulation of continuous casting Objectives: To gain experience in simulating a control system (controller + plant) within MATLAB/Simulink. To

More information

Getting Started with MATLAB

Getting Started with MATLAB Getting Started with MATLAB Math 4600 Lab: Gregory Handy http://www.math.utah.edu/ borisyuk/4600/ Logging in for the first time: This is what you do to start working on the computer. If your machine seems

More information

Math Sciences Computing Center. University ofwashington. September, Fundamentals Making Plots Printing and Saving Graphs...

Math Sciences Computing Center. University ofwashington. September, Fundamentals Making Plots Printing and Saving Graphs... Introduction to Plotting with Matlab Math Sciences Computing Center University ofwashington September, 1996 Contents Fundamentals........................................... 1 Making Plots...........................................

More information

Introduction to Excel Workshop

Introduction to Excel Workshop Introduction to Excel Workshop Empirical Reasoning Center June 6, 2016 1 Important Terminology 1. Rows are identified by numbers. 2. Columns are identified by letters. 3. Cells are identified by the row-column

More information

Dr. Iyad Jafar. Adapted from the publisher slides

Dr. Iyad Jafar. Adapted from the publisher slides Computer Applications Lab Lab 6 Plotting Chapter 5 Sections 1,2,3,8 Dr. Iyad Jafar Adapted from the publisher slides Outline xy Plotting Functions Subplots Special Plot Types Three-Dimensional Plotting

More information

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW Objectives: The goal of this exercise is to introduce the Laboratory Virtual Instrument Engineering Workbench, or LabVIEW software. LabVIEW is the primary software

More information

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 INC151 Electrical Engineering Software Practice MATLAB Graphics Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 Graphical display is one of MATLAB s greatest strengths and most

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

SIGNALS AND LINEAR SYSTEMS LABORATORY EELE

SIGNALS AND LINEAR SYSTEMS LABORATORY EELE The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department SIGNALS AND LINEAR SYSTEMS LABORATORY EELE 3110 Experiment (5): Simulink Prepared by: Eng. Mohammed S. Abuwarda Eng.

More information

The Mathcad Workspace 7

The Mathcad Workspace 7 For information on system requirements and how to install Mathcad on your computer, refer to Chapter 1, Welcome to Mathcad. When you start Mathcad, you ll see a window like that shown in Figure 2-1. By

More information

Introduction to IgorPro

Introduction to IgorPro Introduction to IgorPro These notes provide an introduction to the software package IgorPro. For more details, see the Help section or the IgorPro online manual. [www.wavemetrics.com/products/igorpro/manual.htm]

More information

Beginner s Guide to Microsoft Excel 2002

Beginner s Guide to Microsoft Excel 2002 Beginner s Guide to Microsoft Excel 2002 Microsoft Excel lets you create spreadsheets, which allow you to make budgets, track inventories, calculate profits, and design charts and graphs. 1. Open Start

More information

Application Tutorial

Application Tutorial Application Tutorial Use these instructions to assist in completing a downloaded application using Adobe Acrobat Reader. Adobe Acrobat Reader is a free download and may be downloaded at http://www.adobe.com.

More information

Microsoft Excel 2007 Lesson 7: Charts and Comments

Microsoft Excel 2007 Lesson 7: Charts and Comments Microsoft Excel 2007 Lesson 7: Charts and Comments Open Example.xlsx if it is not already open. Click on the Example 3 tab to see the worksheet for this lesson. This is essentially the same worksheet that

More information

Matlab Handout Nancy Chen Math 19 Fall 2004

Matlab Handout Nancy Chen Math 19 Fall 2004 Matlab Handout Nancy Chen Math 19 Fall 2004 Introduction Matlab is a useful program for algorithm development, numerical computation, and data analysis and visualization. In this class you will only need

More information

2. Introduction to Matlab Control System Toolbox

2. Introduction to Matlab Control System Toolbox . Introduction to Matlab Control System Toolbox Consider a single-input, single-output (SISO), continuous-time, linear, time invariant (LTI) system defined by its transfer function: u(t) Y( S) num y(t)

More information

What is Simulink. >>simulink

What is Simulink. >>simulink MATLAB Simulink What is Simulink Simulink is an input/output device GUI block diagram simulator. Simulink contains a Library Editor of tools from which we can build input/output devices and continuous

More information

Math 2524: Activity 1 (Using Excel) Fall 2002

Math 2524: Activity 1 (Using Excel) Fall 2002 Math 2524: Activity 1 (Using Excel) Fall 22 Often in a problem situation you will be presented with discrete data rather than a function that gives you the resultant data. You will use Microsoft Excel

More information

CBCL Limited Tool Palettes Tutorial 2012 REV. 01. CBCL Design Management & Best CAD Practices. Our Vision

CBCL Limited Tool Palettes Tutorial 2012 REV. 01. CBCL Design Management & Best CAD Practices. Our Vision CBCL Limited Tool Palettes Tutorial CBCL Design Management & Best CAD Practices 2012 REV. 01 Our Vision To be the most respected and successful Atlantic Canada based employeeowned firm, delivering multidiscipline

More information

SIMULINK FOR BEGINNERS:

SIMULINK FOR BEGINNERS: 1 SIMULINK FOR BEGINNERS: To begin your SIMULINK session open first MATLAB ICON by clicking mouse twice and then type»simulink You will now see the Simulink block library. 2 Browse through block libraries.

More information

AMS 27L LAB #2 Winter 2009

AMS 27L LAB #2 Winter 2009 AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

INTViewer Tutorial Cube Tutorial

INTViewer Tutorial Cube Tutorial INTViewer Tutorial Cube Tutorial This tutorial shows how to use INTViewer to display a seismic cube stored in a Seismic file. Windows created will include INLINE, XLINE, Time Slice and an arbitrary traverse,

More information

Computational Modelling 102 (Scientific Programming) Tutorials

Computational Modelling 102 (Scientific Programming) Tutorials COMO 102 : Scientific Programming, Tutorials 2003 1 Computational Modelling 102 (Scientific Programming) Tutorials Dr J. D. Enlow Last modified August 18, 2003. Contents Tutorial 1 : Introduction 3 Tutorial

More information

AutoCAD 2009 Tutorial

AutoCAD 2009 Tutorial AutoCAD 2009 Tutorial Second Level: 3D Modeling Randy H. Shih Oregon Institute of Technology SDC PUBLICATIONS Schroff Development Corporation www.schroff.com Better Textbooks. Lower Prices. AutoCAD 2009

More information

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills Discovering Computers & Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Objectives Perform basic mouse operations Start Windows and log on to the computer Identify the objects

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows CHAPTER 1 Getting to Know AutoCAD Opening a new drawing Getting familiar with the AutoCAD and AutoCAD LT Graphics windows Modifying the display Displaying and arranging toolbars COPYRIGHTED MATERIAL 2

More information

Excel Primer CH141 Fall, 2017

Excel Primer CH141 Fall, 2017 Excel Primer CH141 Fall, 2017 To Start Excel : Click on the Excel icon found in the lower menu dock. Once Excel Workbook Gallery opens double click on Excel Workbook. A blank workbook page should appear

More information

Figure 1: Control & Simulation Loop

Figure 1: Control & Simulation Loop Pre-Lab 4 LabVIEW Tutorial Overview In this tutorial, you will be using the Control & Simulation library in LabVIEW to simulate the step response for the transfer function of a system. ATTENTION : After

More information

Grace days can not be used for this assignment

Grace days can not be used for this assignment CS513 Spring 19 Prof. Ron Matlab Assignment #0 Prepared by Narfi Stefansson Due January 30, 2019 Grace days can not be used for this assignment The Matlab assignments are not intended to be complete tutorials,

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

Armstrong Atlantic State University Engineering Studies MATLAB Marina 2D Plotting Primer

Armstrong Atlantic State University Engineering Studies MATLAB Marina 2D Plotting Primer Armstrong Atlantic State University Engineering Studies MATLAB Marina D Plotting Primer Prerequisites The D Plotting Primer assumes knowledge of the MATLAB IDE, MATLAB help, arithmetic operations, built

More information

Dealing with Data in Excel 2013/2016

Dealing with Data in Excel 2013/2016 Dealing with Data in Excel 2013/2016 Excel provides the ability to do computations and graphing of data. Here we provide the basics and some advanced capabilities available in Excel that are useful for

More information

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command...

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... Contents 2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... 9 2D LINE PLOTS One of the benefits of programming in MATLAB

More information

Chapter 2. MATLAB Fundamentals

Chapter 2. MATLAB Fundamentals Chapter 2. MATLAB Fundamentals Choi Hae Jin Chapter Objectives q Learning how real and complex numbers are assigned to variables. q Learning how vectors and matrices are assigned values using simple assignment,

More information

Randy H. Shih. Jack Zecher PUBLICATIONS

Randy H. Shih. Jack Zecher   PUBLICATIONS Randy H. Shih Jack Zecher PUBLICATIONS WWW.SDCACAD.COM AutoCAD LT 2000 MultiMedia Tutorial 1-1 Lesson 1 Geometric Construction Basics! " # 1-2 AutoCAD LT 2000 MultiMedia Tutorial Introduction Learning

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 1 Chapter 2 MATLAB Fundamentals PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

More information

Open Loop Step Response

Open Loop Step Response TAKE HOME LABS OKLAHOMA STATE UNIVERSITY Open Loop Step Response by Sean Hendrix revised by Trevor Eckert 1 OBJECTIVE The objective is to find a first-order model for a DC motor using the open loop step

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB built-in functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos,

More information

Appendix B: Creating and Analyzing a Simple Model in Abaqus/CAE

Appendix B: Creating and Analyzing a Simple Model in Abaqus/CAE Getting Started with Abaqus: Interactive Edition Appendix B: Creating and Analyzing a Simple Model in Abaqus/CAE The following section is a basic tutorial for the experienced Abaqus user. It leads you

More information

Lesson 1 Parametric Modeling Fundamentals

Lesson 1 Parametric Modeling Fundamentals 1-1 Lesson 1 Parametric Modeling Fundamentals Create Simple Parametric Models. Understand the Basic Parametric Modeling Process. Create and Profile Rough Sketches. Understand the "Shape before size" approach.

More information

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors: The goal of this technology assignment is to graph several formulas in Excel. This assignment assumes that you using Excel 2007. The formula you will graph is a rational function formed from two polynomials,

More information

1. Select the Insert tab. 2. Click the Picture command in the Images group. The Insert Picture dialog box appears.

1. Select the Insert tab. 2. Click the Picture command in the Images group. The Insert Picture dialog box appears. PowerPoint 2010 Inserting Images Introduction Page 1 Adding images to your presentations makes them more interesting and engaging. Pictures, clip art and screenshots can be inserted into PowerPoint to

More information

Closed Loop Step Response

Closed Loop Step Response TAKE HOME LABS OKLAHOMA STATE UNIVERSITY Closed Loop Step Response by Sean Hendrix revised by Trevor Eckert 1 OBJECTIVE This experiment adds feedback to the Open Loop Step Response experiment. The objective

More information

How to use Excel Spreadsheets for Graphing

How to use Excel Spreadsheets for Graphing How to use Excel Spreadsheets for Graphing 1. Click on the Excel Program on the Desktop 2. You will notice that a screen similar to the above screen comes up. A spreadsheet is divided into Columns (A,

More information

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001 Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001 Goal: The goal of Lab 1 is to introduce you to Microsoft Excel, to show you how to graph data and functions, and to practice solving problems with

More information

DAQFactory U3 Tutorial Getting Started with DAQFactory-Express and your LabJack U3 11/3/06

DAQFactory U3 Tutorial Getting Started with DAQFactory-Express and your LabJack U3 11/3/06 DAQFactory U3 Tutorial Getting Started with DAQFactory-Express and your LabJack U3 11/3/06 Congratulations on the purchase of your new LabJack U3. Included on your installation CD is a fully licensed copy

More information

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window. EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses

More information

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University MATLAB Fundamentals Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University Reference: 1. Applied Numerical Methods with MATLAB for Engineers, Chapter 2 &

More information

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c. MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab

More information

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox Scientific Computing III 1 (15) Institutionen för informationsteknologi Beräkningsvetenskap Besöksadress: ITC hus 2, Polacksbacken Lägerhyddsvägen 2 Postadress: Box 337 751 05 Uppsala Telefon: 018 471

More information

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Islamic University of Gaza Faculty of Engineering Electrical Engineering Department 2012 DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Goals for this Lab Assignment: In this lab we would have

More information

MATLAB CONTROL SYSTEM TOOLBOX IN LTI SYSTEM MODEL ANALYSIS

MATLAB CONTROL SYSTEM TOOLBOX IN LTI SYSTEM MODEL ANALYSIS MATLAB CONTROL SYSTEM TOOLBOX IN LTI SYSTEM MODEL ANALYSIS Asist.univ. Luminiţa Giurgiu Abstract The MATLAB environment has important numerical tools. One of them provides a reliable foundation for control

More information

Microsoft Excel 2007

Microsoft Excel 2007 Microsoft Excel 2007 1 Excel is Microsoft s Spreadsheet program. Spreadsheets are often used as a method of displaying and manipulating groups of data in an effective manner. It was originally created

More information

Getting Started with MATLAB

Getting Started with MATLAB Getting Started with MATLAB Math 315, Fall 2003 Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such as

More information

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. PC-MATLAB PRIMER This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. >> 2*3 ans = 6 PCMATLAB uses several lines for the answer, but I ve edited this to save space.

More information

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0 SciGraphica Tutorial Manual - Tutorials 1and 2 Version 0.8.0 Copyright (c) 2001 the SciGraphica documentation group Permission is granted to copy, distribute and/or modify this document under the terms

More information

Computer Project: Getting Started with MATLAB

Computer Project: Getting Started with MATLAB Computer Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands. Examples here can be useful for reference later. MATLAB functions: [ ] : ; + - *

More information

EE 350. Continuous-Time Linear Systems. Recitation 1. 1

EE 350. Continuous-Time Linear Systems. Recitation 1. 1 EE 350 Continuous-Time Linear Systems Recitation 1 Recitation 1. 1 Recitation 1 Topics MATLAB Programming Basic Operations, Built-In Functions, and Variables m-files Graphics: 2D plots EE 210 Review Branch

More information

Lecturer: Keyvan Dehmamy

Lecturer: Keyvan Dehmamy MATLAB Tutorial Lecturer: Keyvan Dehmamy 1 Topics Introduction Running MATLAB and MATLAB Environment Getting help Variables Vectors, Matrices, and linear Algebra Mathematical Functions and Applications

More information

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling Access Review Relational Databases Different tables can have the same field in common. This feature is used to explicitly specify a relationship between two tables. Values appearing in field A in one table

More information

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc. Maple Quick Start Maplesoft, a division of Waterloo Maple Inc. This tutorial is designed to help you become familiar with the Maple environment and teach you the few fundamental concepts and tools you

More information

Chapter 7 Inserting Spreadsheets, Charts, and Other Objects

Chapter 7 Inserting Spreadsheets, Charts, and Other Objects Impress Guide Chapter 7 Inserting Spreadsheets, Charts, and Other Objects OpenOffice.org Copyright This document is Copyright 2007 by its contributors as listed in the section titled Authors. You can distribute

More information

Using Windows 7 Explorer By Len Nasman, Bristol Village Computer Club

Using Windows 7 Explorer By Len Nasman, Bristol Village Computer Club By Len Nasman, Bristol Village Computer Club Understanding Windows 7 Explorer is key to taking control of your computer. If you have ever created a file and later had a hard time finding it, or if you

More information

Saratoga Springs City School District/Office of Continuing Education Introduction to Microsoft Excel 04 Charts. 1. Chart Types and Dimensions

Saratoga Springs City School District/Office of Continuing Education Introduction to Microsoft Excel 04 Charts. 1. Chart Types and Dimensions 1949 1954 1959 1964 1969 1974 1979 1984 1989 1994 1999 2004 Saratoga Springs City School District/Office of Continuing Education Introduction to Microsoft Excel 04 Charts 1. Chart Types and Dimensions

More information

Excel Tables & PivotTables

Excel Tables & PivotTables Excel Tables & PivotTables A PivotTable is a tool that is used to summarize and reorganize data from an Excel spreadsheet. PivotTables are very useful where there is a lot of data that to analyze. PivotTables

More information

Chapter 2 The Design Window

Chapter 2 The Design Window Chapter 2 Objectives Chapter 2 The Design Window Learn about Crystal sections Move objects Use Toolbars, Icons, and Menus Format fields Add Special Fields Change a Group Use the Crystal Field Explorer

More information

BEAWebLogic Server. Using the WebLogic Diagnostic Framework Console Extension

BEAWebLogic Server. Using the WebLogic Diagnostic Framework Console Extension BEAWebLogic Server Using the WebLogic Diagnostic Framework Console Extension Version 10.0 Revised: March 30, 2007 Contents 1. Introduction and Roadmap What Is the WebLogic Diagnostic Framework Console

More information

Autodesk Fusion 360 Training: The Future of Making Things Attendee Guide

Autodesk Fusion 360 Training: The Future of Making Things Attendee Guide Autodesk Fusion 360 Training: The Future of Making Things Attendee Guide Abstract After completing this workshop, you will have a basic understanding of editing 3D models using Autodesk Fusion 360 TM to

More information

Data and Function Plotting with MATLAB (Linux-10)

Data and Function Plotting with MATLAB (Linux-10) Data and Function Plotting with MATLAB (Linux-10) This tutorial describes the use of MATLAB for general plotting of experimental data and equations and for special plots like histograms. (Astronomers -

More information