Note 10 Introduction to MATLAB & SIMULINK

Size: px
Start display at page:

Download "Note 10 Introduction to MATLAB & SIMULINK"

Transcription

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

2 1 Introduction to MATLAB MATLAB stands for the matrix laboratory It is an easy-to-use programming environment for performing numerical computation and graphically displaying the results It was first designed to perform matrix computation in 1960 Since then MATLAB has been developed being very powerful and has been widely used in many different engineering fields as well as scientific and non-scientific areas When used with routines from its companion software, the Control System Toolbox, MATLAB can be used to analyze and design control system problems such as those covered in our class 11 MATLAB Variables In MATLAB, variables are used to store various types of data such as scalars, vectors, matrices, etc MATLAB variables are created when they are assigned values For example, enter the following commands in the Command Window, >> x=150 % Assign 150 to x and display >> P1=[1 3 17] % Assign the vector of [1 3 17] to P and display (using a space between any % two elements) >> P=[1 0 3]; % The command ending with ; causes MATLAB not to display the result In MATLAB, % is used to indicate comments followed, which will not be executed by MATLAB Once the above commends are executed in MATLAB, the names of three variables, ie, x, P1, and P and their values are saved in a part of computer memory, called the Workspace in MATLAB You may use >> who % List all variables in the workspace >> x % Enter the name of a variable to display its value >> clear % Remove all variables and their values from the workspace In addition, you may use >> clc % Clear command window 1 Common Commands or Functions used in Control Systems A command (also referred to a function) is an instruction for a computer to perform a specific operation Create Polynomials >> P=[ ] % Create a polynomial: P = s 3 + 7s 3s + 3 % The vector contains the coefficients of the polynomial Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada

3 >> P=poly([- -5-6]) % Create a polynomial: P = ( s + )( s + 5)( s + 6) % The vector in poly () contains the roots of the polynomial >> P=conv([1 7], [1-3 ]) % Create a polynomial: P = ( s + 7)( s 3s + ) % The two vectors in conv() contains the coefficients of the two polynomials % respectively Create Transfer Function - using the function tf (, ) Using the following three commands to generate a transfer function s + G ( s) s + 3s + 16 >> numf=[1 ] % Create a polynomial: numf = s + >> denf=[1 3 16] % Create a polynomial: denf = s + 3s + 16 >> G1=tf(numf, denf) % Create a transfer function G1 % The first argument in tf() defines the numerator of the transfer function and % the second one defines its denominator Using the following three commands to generate a transfer function >> numf=[1 ]] % Create a polynomial: numf = s + >> denf=poly([-1-5]) % Create a polynomial: denf = ( s + 1)( s + 5) >> G=tf(numf, denf) % Create a transfer function G s + G ( s) ( s + 1)( s + 5) Find the closed-loop transfer function - by using the function feedback (, ) >> numf=[5]] % Create a polynomial: >> denf=poly([0-5]) % Create a polynomial: >> G=tf(numf, denf) % Create a transfer function G(s) >> T=feedback(G, 1) % Find the closed-loop transfer function T(s) Time Response using the function step( ) 16 Using the following commands to plot the step response of the system G ( s) s + 3s + 16 >> numf=[16] % Create a polynomial: numf = 16 >> denf=[1 3 16] % Create a polynomial: denf = s + 3s + 16 >> G=tf(numf, denf) % Create a transfer function G >> step (G) % Plot the step response, which is displayed in the widow of Figure >> grid on % Adds major grid lines to the axes Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada 3

4 Find the poles of a system (then determine its stability) - by using the function pole() >> pole(g); % Compute the poles of the system defined by G Draw the Bode plots - by using the function bode ( ) >> bode(g) % Draw the Bode plot of the system defined by G >> grid on % Turn on grid for Bode plot, ie, adds major grid lines to the axes Draw Root locus - by using the function rlocus( ) Using the following commands to draw the root locus for K( s 3)( s 5) KGH = ( s + 1)( s + ) >> numf=poly([3 5]) % Create a polynomial: numf = ( s 3)( s 5) >> denf=poly([-1 -]) % Create a polynomial: denf = ( s + 1)( s + ) >> GH=tf(numf, denf) % Create the open-loop transfer function GH >> rlocus (GH) % Draw the root locus, which is displayed in the widow of Figure >> grid on % Adds major grid lines to the axes 13 M-files Using the Command Window to solve problems by entering and executing individual MATLAB command can be a tedious process, especially if the same or a similar set of commands have to be entered a number of times An alternative approach for executing multiple commands is to use a MATLAB M-file A MATLAB M-file is a file that contains a series of Matlab commands The file is generated using the MATLAB Editor(enter the command edit in the Command Window to get such a Editor); and the commands in the file are executed by selecting Run under the Debug menu in the MATLAB Editor, or entering the name of the file in the Command Window For example, the following is an example of MATLAB M-file % This program is used to plot the step response of a system numf=[16]; % Create the numerator polynomial denf=[1 3 16]; % Create the denominator polynomial G=tf(numf, denf); % Create a transfer function G step (G); % Plot the step response grid on; % Adds major grid lines to the axes % The End Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada 4

5 SIMULINK SIMULINK, a companion program to MATLAB, is a software package for modeling, simulating, and analyzing dynamic systems In SIMULINK, you can use the graphical user interface (GUI) to generate your dynamic or control system, and then run a simulation for the system The procedure of using SIMULINK is described as follows (1) Starting SIMULINK Entering the command simulink in the Command Window, then you will see the SIMULINK Library Brower () Create a New Model In the SIMULINK Library Brower, click on the button of Create a new model, you will have a window to create a model Then, Drag the required blocks to your mode window from the SIMULINK Library Brower A block is used to perform a specific function; and the SIMULINK Library Brower can provide all kinds of blocks, which are organized in different categories such as Continuous (ie, subsystems), Sources (ie, function generators), and Sinks (ie, scopes), etc Quite often, you may need to choose the parameters for a block in your model To do that, Double-click the block and type in the desired parameters Interconnect the blocks by drawing lines Position the pointer over the first block s output port, press the mouse button, and drag the pointer to the second s input pot Please note: to draw a branch line from an existing line, you need to hold down the key of Ctrl (3) Run a Simulation for the Model In your model window, select Start under the Simulation menu Sometimes, you may need to choose the parameter for a simulation, such as simulation time To do that, select Configuration Parameters under the Simulation menu in your model window and set the desired parameters (4) Viewing the Simulation Results Double-click the Scope block in you model to view the simulation results For this purpose, when you create your model you need to drag a Scope block from the SIMULINK Library Brower and to connect it the output of the system, which you want to view the simulation results Examples of using SIMULINK by following the above procedure will be illustrated in class Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada 5

Guidelines for MATLAB s SISO Design Tool GUI

Guidelines for MATLAB s SISO Design Tool GUI Dr. Farzad Pourboghrat Guidelines for MATLAB s SISO Design Tool GUI The SISO Design Tool is a graphical user interface (GUI) that facilitates the design of compensators for single-input, single-output

More information

Lecture 15 Nyquist Criterion and Diagram

Lecture 15 Nyquist Criterion and Diagram Lecture 15 Nyquist Criterion and Diagram Department of Mechanical Engineering, University Of Saskatchewan, 57 Campus Drive, Saskatoon, SK S7N 5A9, Canada 1 1. Review of System Stability and Some Concepts

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

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

Control System Toolbox

Control System Toolbox The Almighty University of Mohaghegh Ardabili Control System Toolbox The SISO Design Tool 1 Transfer Function TF = 2s + 4 s 2 + 6s + 5 TF = TF = 2(s + 2) (s + 1)(s + 5) 2(s + 2) (s + 1)(s + 5) 0 1 A= 5

More information

Using MATLAB, SIMULINK and Control System Toolbox

Using MATLAB, SIMULINK and Control System Toolbox Using MATLAB, SIMULINK and Control System Toolbox A practical approach Alberto Cavallo Roberto Setola Francesco Vasca Prentice Hall London New York Toronto Sydney Tokyo Singapore Madrid Mexico City Munich

More information

Root Locus Controller Design

Root Locus Controller Design Islamic University of Gaza Faculty of Engineering Electrical Engineering department Control Systems Design Lab Eng. Mohammed S. Jouda Eng. Ola M. Skeik Experiment 4 Root Locus Controller Design Overview

More information

Introduction to the MATLAB SIMULINK Program

Introduction to the MATLAB SIMULINK Program 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

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

Lab # 3 Time Response Design. State Space and Transfer Functions

Lab # 3 Time Response Design. State Space and Transfer Functions Islamic University of Gaza Faculty of Engineering Computer Engineering Dep. Feedback Control Systems Lab Eng. Tareq Abu Aisha Lab # 3 Lab # 3 Time Response Design State Space and Transfer Functions There

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

Workshop Matlab/Simulink in Drives and Power electronics Lecture 3

Workshop Matlab/Simulink in Drives and Power electronics Lecture 3 Workshop Matlab/Simulink in Drives and Power electronics Lecture 3 : DC-Motor Control design Ghislain REMY Jean DEPREZ 1 / 29 Workshop Program 8 lectures will be presented based on Matlab/Simulink : 1

More information

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

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

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

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

Lab # 8 Parallel Port Interface with LabView & Root Locus Design

Lab # 8 Parallel Port Interface with LabView & Root Locus Design Islamic University of Gaza Faculty of Engineering Computer Engineering Dep. Feedback Control Systems Lab Eng. Tareq Abu Aisha Lab # 8 Lab # 8 Parallel Port Interface with LabView & Root Locus Design Introduction:

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

BRUSH UP ON MATLAB UNIVERSITY OF PAVIA. Industrial Control FACULTY OF ENGINEERING. Prof. Lalo Magni

BRUSH UP ON MATLAB UNIVERSITY OF PAVIA. Industrial Control FACULTY OF ENGINEERING. Prof. Lalo Magni UNIVERSITY OF PAVIA FACULTY OF ENGINEERING Industrial Control Prof. Lalo Magni BRUSH UP ON MATLAB Chiara Toffanin, Assistant Professor Gian Paolo Incremona, Ph.D. MATLAB: What is it? MATLAB (from MATrix

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

An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein

An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein E205 Introduction to Control Design Techniques An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein MATLAB is essentially a programming interface that

More information

Lab 7: PID Control with Trajectory Following

Lab 7: PID Control with Trajectory Following Introduction ME460: INDUSTRIAL CONTROL SYSTEMS Lab 7: PID Control with Trajectory Following In Lab 6 you identified an approximate transfer function for both the X and Y linear drives of the XY stage in

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

SPA_GUI. Matlab graphical user interface allowing signal processing and. variable selection for multivariate calibration.

SPA_GUI. Matlab graphical user interface allowing signal processing and. variable selection for multivariate calibration. Matlab graphical user interface allowing signal processing and variable selection for multivariate calibration. www.ele.ita.br/~kawakami/spa January/2012 About SPA_GUI SPA_GUI is a Matlab graphical user

More information

ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah)

ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) Introduction ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) MATLAB is a powerful mathematical language that is used in most engineering companies today. Its strength lies

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

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

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

Process Automation CHEM-E7140

Process Automation CHEM-E7140 Process Automation CHEM-E7140 Tutorial 3: An introduction to Simulink 1 Contents 1 Simulink: a brief introduction...2 A. Getting started...2 B. Modeling dynamic models...3 C. Creating a new model...4 D.

More information

Developing a MATLAB-Based Control System Design and Analysis Tool for Enhanced Learning Environment in Control System Education

Developing a MATLAB-Based Control System Design and Analysis Tool for Enhanced Learning Environment in Control System Education Developing a MATLAB-Based Control System Design and Analysis Tool for Enhanced Learning Environment in Control System Education Frank S. Cheng and Lin Zhao Industrial and Engineering Technology Department

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

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

2.0 MATLAB Fundamentals

2.0 MATLAB Fundamentals 2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,

More information

Matlab Programming MET 164 1/24

Matlab Programming MET 164 1/24 Matlab Programming 1/24 2/24 What does MATLAB mean? Contraction of Matrix Laboratory Matrices are rectangular arrays of numerical values 7 3 6 2 1 9 4 4 8 4 1 5 7 2 1 3 What are the fundamental components

More information

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 1 6 3 Matlab 3.1 Fundamentals Matlab. The name Matlab stands for matrix laboratory. Main principle. Matlab works with rectangular

More information

MATLAB Control Software Bharat Balagopal, Bharathram Balasubramanian, and Eric Stratton Green

MATLAB Control Software Bharat Balagopal, Bharathram Balasubramanian, and Eric Stratton Green ECE-536 DIGITAL CONTROL SYSTEMS Page 1 of 12 MATLAB Control Software Bharat Balagopal, Bharathram Balasubramanian, and Eric Stratton Green Electrical and Computer Engineering Department, North Carolina

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

[ 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

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

Here is a quick introduction to Matlab and a couple of its symbolic and control functions.

Here is a quick introduction to Matlab and a couple of its symbolic and control functions. Some Matlab 1 Here is a quick introduction to Matlab and a couple of its symbolic and control functions. Matlab is an interpreted language. When you enter a command in the Command window, the line is executed

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

Example: Modeling a Cruise Control System in Simulink

Example: Modeling a Cruise Control System in Simulink Example: Modeling a Cruise Control System in Simulink Physical setup and system equations Building the model Open-loop response Extracting the Model Implementing PI control Closed-loop response Physical

More information

User Defined Functions

User Defined Functions User Defined Functions 120 90 1 0.8 60 Chapter 6 150 0.6 0.4 30 0.2 180 0 210 330 240 270 300 Objectives Create and use MATLAB functions with both single and multiple inputs and outputs Learn how to store

More information

3 An Introductory Demonstration Execute the following command to view a quick introduction to Matlab. >> intro (Use your mouse to position windows on

3 An Introductory Demonstration Execute the following command to view a quick introduction to Matlab. >> intro (Use your mouse to position windows on Department of Electrical Engineering EE281 Introduction to MATLAB on the Region IV Computing Facilities 1 What is Matlab? Matlab is a high-performance interactive software package for scientic and enginnering

More information

E105: RLTOOL Tutorial

E105: RLTOOL Tutorial E105: RLTOOL Tutorial Andrew C. Smith 7/30/2007 Thanks to Sean Augenstein for his tutorial. 1. Introduction What is RLTOOL? RLTOOL is a tool in MATLAB, that provides a GUI for performing Root Locus analysis

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

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering LEARNING TO PROGRAM WITH MATLAB Building GUI Tools Craig S. Lent Department of Electrical Engineering University of Notre Dame Wiley Contents Preface ix I MATLAB Programming 1 1 Getting Started 3 1.1 Running

More information

Experiment # 5. Introduction to Error Control Codes

Experiment # 5. Introduction to Error Control Codes ECE 417 Winter 2003 Experiment # 5 Introduction to Error Control Codes 1 Purpose The purpose for this experiment is to provide you with an introduction to the field of error control coding. This will be

More information

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming using familiar mathematical notation The name Matlab stands

More information

Control System Toolbox For Use with MATLAB

Control System Toolbox For Use with MATLAB Control System Toolbox For Use with MATLAB Using the Control System Toolbox Version 6 How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab support@mathworks.com suggest@mathworks.com bugs@mathworks.com

More information

Control System Toolbox For Use with MATLAB

Control System Toolbox For Use with MATLAB Control System Toolbox For Use with MATLAB User s Guide Version 6 How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab support@mathworks.com suggest@mathworks.com bugs@mathworks.com doc@mathworks.com

More information

American International University- Bangladesh Faculty of Engineering (EEE) Control Systems Laboratory

American International University- Bangladesh Faculty of Engineering (EEE) Control Systems Laboratory Experiment 1 American International University- Bangladesh Faculty of Engineering (EEE) Control Systems Laboratory Title: Introduction to design and simulation of open loop and close loop control systems

More information

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 4 SIMULINK 4 Simulink 4 Quick introduction General information Simulink is an etension of Matlab software for simulating dynamic

More information

UNIT 5. Simulink. 1. Introduction

UNIT 5. Simulink. 1. Introduction UNIT 5 Simulink 1. Introduction... 1 2. Simulink... 2 2.1 Starting Simulink... 2 2.2 Model building... 3 2.3 Simulation parameters and Scope block... 5 2.4 Subsystems and masks... 11 2.5 S Functions...

More information

Lab. Manual. Practical Special Topics (Matlab Programming) (EngE416) Prepared By Dr. Emad Saeid

Lab. Manual. Practical Special Topics (Matlab Programming) (EngE416) Prepared By Dr. Emad Saeid KINGDOM OF SAUDI ARABIA JAZAN UNIVERSTY College of Engineering Electrical Engineering Department المملكة العربية السعودية وزارة التعليم العالي جامعة جازان كلية الھندسة قسم الھندسة الكھربائية Lab. Manual

More information

MATLAB MATLAB mat lab funtool

MATLAB MATLAB mat lab funtool MATLAB MATLAB (matrix laboratory) is a numerical computing environment and fourthgeneration programming language. Developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and data,

More information

Login your clickers & NO calculators. Get the 4.1 checkpoint from the brown table and answer the questions.

Login your clickers & NO calculators. Get the 4.1 checkpoint from the brown table and answer the questions. Login your clickers & NO calculators. Get the 4.1 checkpoint from the brown table and answer the questions. Nov 3 4:18 PM 1 Do you plan on doing chapter 3 test corrections? Yes No Nov 3 4:19 PM 1 Algebra

More information

2 SIMULATING A MODEL Simulink Tutorial

2 SIMULATING A MODEL Simulink Tutorial 2 SIMULATING A MODEL Simulink Tutorial 1 Introduction Simulation of dynamic systems has been proven to be immensely useful in system modeling and controller design. Simulink R is a add-on to MATLAB which

More information

Introduction to programming in MATLAB

Introduction to programming in MATLAB Master Degree Course in ELECTRONICS ENGINEERING http://www.dii.unimore.it/~lbiagiotti/systemscontroltheory.html Introduction to programming in MATLAB e-mail: luigi.biagiotti@unimore.it http://www.dii.unimore.it/~lbiagiotti

More information

Menu-driven Graphical Interface for MATLAB Control Design*

Menu-driven Graphical Interface for MATLAB Control Design* Int. J. Engng Ed. Vol. 16, No. 6, pp. 544±552, 2000 0949-149X/91 $3.00+0.00 Printed in Great Britain. # 2000 TEMPUS Publications. Menu-driven Graphical Interface for MATLAB Control Design* E. K. ONG and

More information

Introduction to Scientific Computing with Matlab

Introduction to Scientific Computing with Matlab UNIVERSITY OF WATERLOO Introduction to Scientific Computing with Matlab SAW Training Course R. William Lewis Computing Consultant Client Services Information Systems & Technology 2007 Table of Contents

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

FLORIDA INTERNATIONAL UNIVERSITY EEL-6681 FUZZY SYSTEMS

FLORIDA INTERNATIONAL UNIVERSITY EEL-6681 FUZZY SYSTEMS FLORIDA INTERNATIONAL UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING EEL-6681 FUZZY SYSTEMS A Practical Guide to Model Fuzzy Inference Systems using MATLAB and Simulink By Pablo Gomez Miami,

More information

MATLAB 7. The Language of Technical Computing KEY FEATURES

MATLAB 7. The Language of Technical Computing KEY FEATURES MATLAB 7 The Language of Technical Computing MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numerical

More information

Contents RELEASE AND UPGRADE NOTES. Version 4.0

Contents RELEASE AND UPGRADE NOTES. Version 4.0 RELEASE AND UPGRADE NOTES HIQ Version 4.0 These notes introduce you to HiQ, describe the system requirements, and contain installation instructions, upgrade information, new features, and updated documentation

More information

Nonlinear Control(FRTN05)

Nonlinear Control(FRTN05) Nonlinear Control(FRTN05) troduction to Simulink Last updated: Spring of 204 Contents Te exercise is intended as an introduction into Simulink and te Control System Toolbox. It can be performed in Matlab

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

How to Use MATLAB. What is MATLAB. Getting Started. Online Help. General Purpose Commands

How to Use MATLAB. What is MATLAB. Getting Started. Online Help. General Purpose Commands How to Use MATLAB What is MATLAB MATLAB is an interactive package for numerical analysis, matrix computation, control system design and linear system analysis and design. On the server bass, MATLAB version

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

FDP on Electronic Design Tools Matlab for Control System Modeling 13/12/2017. A hands-on training session on

FDP on Electronic Design Tools Matlab for Control System Modeling 13/12/2017. A hands-on training session on A hands-on training session on MATLAB for Control System Modeling in connection with the FDP on Electronic Design Tools @ GCE Kannur 11 15 December 2017 Resource Person : Dr. A. Ranjith Ram Associate Professor,

More information

University of Alberta

University of Alberta A Brief Introduction to MATLAB University of Alberta M.G. Lipsett 2008 MATLAB is an interactive program for numerical computation and data visualization, used extensively by engineers for analysis of systems.

More information

Appendix B: MATLAB Tutorial

Appendix B: MATLAB Tutorial Appendix B: MATLAB Tutorial B.1 Introduction MATLAB is a high-level technical computing environment suitable for solving scientific and engineering problems. When used with routines from its companion

More information

Signals and Systems INTRODUCTION TO MATLAB Fall Thomas F. Weiss

Signals and Systems INTRODUCTION TO MATLAB Fall Thomas F. Weiss MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science Signals and Systems 6.3 INTRODUCTION TO MATLAB Fall 1999 Thomas F. Weiss Last modification September 9, 1999

More information

Introduction to Simulink. The Use of Mathematic Simulations in Electrical Engineering

Introduction to Simulink. The Use of Mathematic Simulations in Electrical Engineering Introduction to Simulink The Use of Mathematic Simulations in Electrical Engineering Lecture Outline 1) Introduction to Simulink 2) Modelling of dynamics systems 2 Simulink Tool for modeling, simulating,

More information

The MATLAB system The MATLAB system consists of five main parts:

The MATLAB system The MATLAB system consists of five main parts: Introduction to MATLAB What is MATLAB? The name MATLAB stands for matrix laboratory. MATLAB is a high performance language for technical computing. It integrates computation, visualization, and programming

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Contents 1.1 Objectives... 1 1.2 Lab Requirement... 1 1.3 Background of MATLAB... 1 1.4 The MATLAB System... 1 1.5 Start of MATLAB... 3 1.6 Working Modes of MATLAB... 4 1.7 Basic

More information

Matlab Advanced Programming. Matt Wyant University of Washington

Matlab Advanced Programming. Matt Wyant University of Washington Matlab Advanced Programming Matt Wyant University of Washington Matlab as a programming Language Strengths (as compared to C/C++/Fortran) Fast to write -no type declarations needed Memory allocation/deallocation

More information

MATLAB Premier. Asst. Prof. Dr. Melik DÖLEN. Middle East Technical University Department of Mechanical Engineering 10/30/04 ME 304 1

MATLAB Premier. Asst. Prof. Dr. Melik DÖLEN. Middle East Technical University Department of Mechanical Engineering 10/30/04 ME 304 1 MATLAB Premier Asst. Prof. Dr. Melik DÖLEN Middle East Technical University Department of Mechanical Engineering 0/0/04 ME 04 Outline! Introduction! Basic Features of MATLAB! Prompt Level and Basic Aritmetic

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

Prof. Manoochehr Shirzaei. RaTlab.asu.edu

Prof. Manoochehr Shirzaei. RaTlab.asu.edu RaTlab.asu.edu Introduction To MATLAB Introduction To MATLAB This lecture is an introduction of the basic MATLAB commands. We learn; Functions Procedures for naming and saving the user generated files

More information

A Brief Introduction to MATLAB Evans Library Research Support Workshops

A Brief Introduction to MATLAB Evans Library Research Support Workshops A Brief Introduction to MATLAB Evans Library Research Support Workshops G.C. Anagnostopoulos 1 1 ICE Laboratory, Florida Institute of Technology November 4 th, 2015 The Roadmap 1 Introduction 2 Programming

More information

MATLAB. Miran H. S. Mohammed. Lecture 1

MATLAB. Miran H. S. Mohammed. Lecture 1 MATLAB Miran H. S. Mohammed 1 Lecture 1 OUTLINES Introduction Why using MATLAB Installing MATLAB Activate your installation Getting started Some useful command Using MATLAB as a calculator 2 INTRODUCTION

More information

MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by

MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by 1 MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by MathWorks In 2004, MATLAB had around one million users

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

Introduction to Scientific Computing with Matlab

Introduction to Scientific Computing with Matlab Introduction to Scientific Computing with Matlab Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such

More information

Introduction to Simulink

Introduction to Simulink University College of Southeast Norway Introduction to Simulink Hans-Petter Halvorsen, 2016.11.01 http://home.hit.no/~hansha Preface Simulink, developed by The MathWorks, is a commercial tool for modeling,

More information

Control System Toolbox

Control System Toolbox Control System Toolbox For Use with MATLAB Computation Visualization Programming Using the Control System Toolbox Version 5 How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab support@mathworks.com

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

ME2142/ME2142E Feedback Control Systems

ME2142/ME2142E Feedback Control Systems ME2142/ME2142E Feedback Control Systems Installing OCTAVE in WINDOWS And Using OCTAVE for Control Systems Analysis August 2013 Department of Mechanical Engineering National University of Singapore 1. Introduction

More information

MATLAB INTRODUCTION. Risk analysis lab Ceffer Attila. PhD student BUTE Department Of Networked Systems and Services

MATLAB INTRODUCTION. Risk analysis lab Ceffer Attila. PhD student BUTE Department Of Networked Systems and Services MATLAB INTRODUCTION Risk analysis lab 2018 2018. szeptember 10., Budapest Ceffer Attila PhD student BUTE Department Of Networked Systems and Services ceffer@hit.bme.hu Előadó képe MATLAB Introduction 2

More information

Module 4. Computer-Aided Design (CAD) systems

Module 4. Computer-Aided Design (CAD) systems Module 4. Computer-Aided Design (CAD) systems Nowadays the design of complex systems is unconceivable without computers. The fast computers, the sophisticated developing environments and the well elaborated

More information

Computer Aided Design (CAD) Lecture 10. Introduction to Simulink (3) Dr.Eng. Basem ElHalawany

Computer Aided Design (CAD) Lecture 10. Introduction to Simulink (3) Dr.Eng. Basem ElHalawany Computer Aided Design (CAD) Lecture 10 Introduction to Simulink (3) Dr.Eng. Basem ElHalawany Schedule (Updated 28-10) Topics Estimated Duration (# Lectures) Introduction 1 Introduction to Matlab Environment

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

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Exercises Unit 4. Graphics User Interface

Exercises Unit 4. Graphics User Interface Exercises Unit 4. Graphics User Interface Working period: Seventh and Eighth weeks Due date: 21 April 2013 Submit only one file name_e4.pdf containing the solution to the following exercises. Include the

More information

Getting Started with MATLAB

Getting Started with MATLAB APPENDIX B Getting Started with MATLAB MATLAB software is a computer program that provides the user with a convenient environment for many types of calculations in particular, those that are related to

More information

Colorado State University Department of Mechanical Engineering. MECH Laboratory Exercise #1 Introduction to MATLAB

Colorado State University Department of Mechanical Engineering. MECH Laboratory Exercise #1 Introduction to MATLAB Colorado State University Department of Mechanical Engineering MECH 417 - Laboratory Exercise #1 Introduction to MATLAB Contents 1) Vectors and Matrices... 2 2) Polynomials... 3 3) Plotting and Printing...

More information

Version USER GUIDE A Matlab Graphical User Interface for Flight Dynamics Analysis

Version USER GUIDE A Matlab Graphical User Interface for Flight Dynamics Analysis FLIGHT DYNAMICS ANALYSIS - COMMAND AUGMENTATION DESIGN Version 3.1 USER GUIDE A Matlab Graphical User Interface for Flight Dynamics Analysis Originated by: Shane Rees (Version 1.) Written by: Konstantinos

More information

ME scope Application Note 19

ME scope Application Note 19 ME scope Application Note 19 Using the Stability Diagram to Estimate Modal Frequency & Damping The steps in this Application Note can be duplicated using any Package that includes the VES-4500 Advanced

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information