1 Overview of Simulink. 2 State-space equations

Size: px
Start display at page:

Download "1 Overview of Simulink. 2 State-space equations"

Transcription

1 Modelling and simulation of engineering systems Simulink Exercise 1 - translational mechanical systems Dr. M. Turner (mct6@sun.engg.le.ac.uk 1 Overview of Simulink Simulink is a package which runs in the MATLAB environment. It is used for simulating the behaviour of dynamic systems and today forms a vital part of the design and validation processes in many, often diverse, industries. Simulink allows one to construct block-diagrams of systems using standard blocks such as integrators, differentiators, gains, summing elements and such like. These blocks can be used to build up complex systems which can then be simulated using Simulink s differential equation solver. This first exercise will introduce you to Simulink and useful concepts such as state-space modelling, which can simplify the use of Simulink and enhance its power. State-space equations Often when the equations of motion are derived for a system they appear as high-order differential equations. For example, modelling two masses connected by a spring yields a fouth order differential equation which may be expressed in the form: (1 where is independent of and often represents either constants, externally acting forces, or inputs of some sort. However, if we define the variables: $# ( % # (3 & # ( (' # (5 it then follows that we can write equation (1 as or * ('+ ('+, &-. %- /0 (6 ('135 6 ('78 &7 %- /:9 (7

2 + + As it is this is not useful, but then recall that, from the definitions of %, etc we have that %* & $ % and ' &, so we can write the above relationships, together with equation (7 as, # % (8 % # & (9 & # (' (10 (' # 6 ('78 &7. %7 9 (11 In other words we have transformed our fourth order ODE into four first order ODE s. Defining the vector # 6 7 % & ('89 (where denotes the transpose of a vector we could write this as (1 which is a much more compact form than equation (1. In fact this situation holds quite generally, and assuming that the high-order differential equations satisfy certain properties, we can always write an order differential equation as first-order differential equations of the form: (13 where the state vector, x has rows. Each of the variables, % etc is said to be a state variable of the system. It is not too difficult to see that this form can greatly simplify complex, high-order ODE s. This form is also very convenient for computation and, in fact, is the type of format in which much of the computation associated with simulation is carried out. 3 State-space realisations of linear systems If the system which we are considering is linear, we can simplify its description even further. The standard procedure is to define a set of inputs, u, and a set of outputs, y and then write the system in the following form: (1 (15 where the matrices A,B,C,D are of compatible dimensions with the vectors. The first equation, (1 is often called the state equation. In terms of our previous example, the state equation could be easily written in this form with the matrices A,B given by # %$ '& (* (* (16

3 and the input being taken as (which is only a scalar in this case. Now, imagine we would like the output to be the state variable, then the output equation (equation (15 would be written as This would mean the matrices C,D would be given by 3 6 (17 9 (18 The matrices A,B,C,D are often called the state-space matrices of the system. Summary - An -th order differential equation can be re-written as a set of first order differential equations. Given an input vector and an output vector, one can then write a description of a system in terms of one vector first order differential equation and one algebraic vector equation. These equations are parametrised by four matrices. An example system Let us consider a very simple system to begin with. Consider the mass-spring damper system depicted below. Let us take the force acting on the first mass as the input to the system and the velocity of the second mass as the output. It is easily verified that the equations of motion governing the system are Defining # and of four first order differential equations, viz:. / / %- %- (19 % %- %- % / (0 % # % we can write these coupled second order differential equations as a set % % % % - % % / %- % %7 % %- (1 ( (3 ( We shall now consider two different ways of describing such a system using Simulink.

4 .1 Realisation using basic blocks + + Such a system as above can be realised in SIMULINK using very basic elements: integrators, gains and summing elements, together with the user s favourite input and output elements. The first step in this realisation process is to notice that an integrator block can be considered as something which integrates the derivative of a signal to recover the signal. It is perhaps easier to think of this pictorially as shown below. Here the input to the integrator is and thus the output will be. Now, in state-space systems we have expressions for s in terms of. So for example, if we had that, where is another variable and are constants, we could write this in Simulink as Note that the output of a summing block is equal to the sum of its inputs. The blocks containing and are gain blocks. Using only these elements we can thus draw the Simulink version of the example system as shown on the last page of this worksheet It can be easily seen that although the elements used to construct the Simulink block daigram are simple, the block diagram itself is not. This is only a realisation of a very simple system. Imagine the complexity of a complete car suspension system.... Realisation using state-space blocks In Simulink there is also a state-space block which takes an input signal and produces an output. To use this, one must simply specify the state-space matrices of the system. So, turning to our example, we can work out the state-space matrices of the system as (* (* (5

5 (6 where we have selected the velocity of the second mass as the output. These matrices can simply be entered into the Matlab workspace and used in the Simulink block to simulate the system. To enter a variable, say, into Matlab workspace, at the command prompt type: >>B=1 To enter matrix variables, say A, into the workspace, type: A=[-B/M1 -K/M1 B/M1 K/M1 ; ; B/M K/M -B/M -K/M; ] The elements of the rows are separated by a space. The end of a row (and the start of the next is indicated by using a semi-colon. A nice property of the system in this form is that it s stability can be analysed by looking at the eigenvalues of the -matrix. Typically these eigenvalues will be complex - an imaginary part indicating that the system is under-damped and hence will contain oscillatory modes. For (asymptotic stability it is a requirement that all of the eigenvalues have negative real part. In Matlab you can view the eigenvalues of a matrix, A, by typing >> eig(a.3 A comparison By now, the strengths of the state-space approach are probably becoming clear: they allow a general and convenient way of simulating dynamic systems in Simulink. The individual blocks approach seems complex, even for simple systems, and may be error prone. In addition the structure of these connections will vary from system to system, whereas with a state-space block there is no change in connections, only in the form of the state-space matrices. This is not the whole story however. The simple example we have looked at is a linear system and hence the differential equations describing it are linear. This is not true of every system and complex systems are frequently nonlinear in some way. So while, parts of the system (which are linear or almost linear may be realised through Simulink state-space blocks, other parts of the system will have to be described using individual elements. 5 Working with Simulink To invoke Simulink, simply type >> simulink at the Matlab command prompt. This will bring up the Simulink library window. The library contains most common blocks which are needed in simulation, grouped under several categories (Explore these to familiarise yourself. Once this window has been opened, under the File tab there are options to load/save block diagrams or to create a new diagram.

6 To start a new diagram under File, click New. This should bring up a blank Simulink window. To create a block diagram simply drag blocks over from the library to the new window. The blocks can also be connected with the mouse. Double clicking on a block in the new window will display some of the block s properties. This is used, amongst other things for entering parameters. Note that these parameters must correspond to variables which exist in the Matlab workspace, or are simply numbers or matrices of numbers. Normally one wants to apply inputs to the system and observe the outputs. There are dedicated input blocks, such as the step block, which will apply a step function to the system and the sine block which will apply a sine wave to the system. These behave much the same way as any other block and require certain parameters, such as the magnitude of the sine wave for example, to be set. There are several different ways to observe the outputs of a system, but they are all enabled through various different blocks. For example, connecting a scope block to a certain variable shows the timeevolution of this variable as the system simulates it. The block To workspace saves the variable to the workspace after simulation. It can then be plotted using. >> plot(tout,x assuming the variable s name is (you can change the variables name by double-clicking on the block. On later versions of Matlab, make sure that the variable is saved as a matrix or array type - double click on the To workspace block to make sure this is the case. You should also check that the variable tout in Simulation/Workspace I/O is set to a matrix or array type. Before starting a simulation, there are several parameters which need to be set.to set these parameters, click on the Simulation tab and select Parameters. A small window will be displayed containing a selection of system parameters. The most important of these are Stop-time - the point at which the simulation will stop. Solver options - determines the ODE solver to find the solutions to the underlying differential equations which describe the system. For now, leave this as it is and only change if you experience problems. To run the simulation make follow the following steps: 1. Make sure all required variables have been entered into the Matlab workspace.. Ensure all connections in the Simulink diagram are correctly made and have compatible dimensions. 3. Ensure the time and solver properties are properly set.. Click Simulation and select Start

7 6 Exercise Construct block Simulink models of the example system discussed earlier using both a connection of individual elements and just one state-space block. Test the response of the system using various different inputs: steps, impulses, etc. Verify that the response of the systems using the two different realisation approaches is the same. For your tests use the following parameter values: % Vary to between and and compare the responses. Note you can save variables to a.mat file by using the following command: >> save filename variable1 variable,... Alternatively you can save all the variables in the workspace by simply typing: >> save filename A.mat file can be loaded to the workspace by typing: >> load filename Any current workspace variables of the same name as those in filename.mat will be over-written. To display more than one graph at a time use hold to toggle the figure hold function on and off. What do you notice about the system s response as you vary? Do you notice anything surprising? What does this suggest about the system s transfer function? Use the function >> [num,den]=sstf(a,b,c,d to verify this. What can one say about the stability of this system? Instead of the output %, now take the output as %. What can we now say about the stability of the system? Is this consistent with the physical interpretation. How can this be for a passive system?

8 v1_dot v1 x1_dot x1 Gain3 Gain B/M1 K/M1 Fa(t 1 s 1 s Integrator1 Integrator B/M1 Gain K/M1 Gain1 v_dot v x_dot x 1 s 1 s Integrator Integrator3 B/M Gain K/M Gain6 B/M Gain7 Figure 1: Simulink diagram of mass-spring system using basic elements K/M Gain5

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK What is SIMULINK? SIMULINK is a software package for modeling, simulating, and analyzing

More information

Lab 1: Dynamic Simulation Using Simulink and Matlab

Lab 1: Dynamic Simulation Using Simulink and Matlab Lab 1: Dynamic Simulation Using Simulink and Matlab Objectives In this lab you will learn how to use a program called Simulink to simulate dynamic systems. Simulink runs under Matlab and uses block diagrams

More information

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN 6. Introduction Frequency Response This chapter will begin with the state space form of the equations of motion. We will use Laplace transforms to

More information

(t) ), ( ) where t is time, T is the reaction time, u n is the position of the nth car, and the "sensitivity coefficient" λ may depend on un 1(

(t) ), ( ) where t is time, T is the reaction time, u n is the position of the nth car, and the sensitivity coefficient λ may depend on un 1( Page 1 A Model of Traffic Flow Everyone has had the experience of sitting in a traffic jam, or of seeing cars bunch up on a road for no apparent good reason MATLAB and SIMULINK are good tools for studying

More information

APPENDIX 1 MATLAB AND ANSYS PROGRAMS

APPENDIX 1 MATLAB AND ANSYS PROGRAMS APPENDIX 1 MATLAB AND ANSYS PROGRAMS This appendix lists all the MATLAB and ANSYS codes used in each chapter, along with a short description of the purpose of each. MATLAB codes have the suffix.m and the

More information

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1. Part II Lesson 10 Numerical Analysis Finding roots of a polynomial In MATLAB, a polynomial is expressed as a row vector of the form [an an 1 a2 a1 a0]. The elements ai of this vector are the coefficients

More information

EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring Lab Information

EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring Lab Information EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring 2013 1. Lab Information This is a take-home lab assignment. There is no experiment for this lab. You will study the tutorial

More information

Simulink Modeling Tutorial

Simulink Modeling Tutorial Simulink Modeling Tutorial Train system Free body diagram and Newton's law Model Construction Running the Model Obtaining MATLAB Model In Simulink, it is very straightforward to represent a physical system

More information

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations Chapter Linear Equations. Systems of Linear Equations A linear equation in the n variables x, x 2,..., x n is one that can be expressed in the form a x + a 2 x 2 + + a n x n = b where a, a 2,..., a n and

More information

Appendix 2: Linear Algebra

Appendix 2: Linear Algebra Appendix 2: Linear Algebra This appendix provides a brief overview of operations using linear algebra, and how they are implemented in Mathcad. This overview should provide readers with the ability to

More information

CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab

CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab 1 Introduction and Purpose The purpose of this experiment is to familiarize you with

More information

System Simulation using Matlab

System Simulation using Matlab EE4314 Fall 2008 System Simulation using Matlab The purpose of this laboratory work is to provide experience with the Matlab software for system simulation. The laboratory work contains a guide for solving

More information

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601 A Brief Introduction To GRTensor On MAPLE Platform A write-up for the presentation delivered on the same topic as a part of the course PHYS 601 March 2012 BY: ARSHDEEP SINGH BHATIA arshdeepsb@gmail.com

More information

Newton's 2 nd Law. . Your end results should only be interms of m

Newton's 2 nd Law. . Your end results should only be interms of m Newton's nd Law Introduction: In today's lab you will demonstrate the validity of Newton's Laws in predicting the motion of a simple mechanical system. The system that you will investigate consists of

More information

Using web-based Java pplane applet to graph solutions of systems of differential equations

Using web-based Java pplane applet to graph solutions of systems of differential equations Using web-based Java pplane applet to graph solutions of systems of differential equations Our class project for MA 341 involves using computer tools to analyse solutions of differential equations. This

More information

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu MATLAB BASICS Instructor: Prof. Shahrouk Ahmadi 1. What are M-files TA: Kartik Bulusu M-files are files that contain a collection of MATLAB commands or are used to define new MATLAB functions. For the

More information

Introduction to Matlab

Introduction to Matlab History of Matlab Starting Matlab Matrix operation Introduction to Matlab Useful commands in linear algebra Scripts-M file Use Matlab to explore the notion of span and the geometry of eigenvalues and eigenvectors.

More information

Math Assignment 3 - Linear Algebra

Math Assignment 3 - Linear Algebra Math 216 - Assignment 3 - Linear Algebra Due: Tuesday, March 27. Nothing accepted after Thursday, March 29. This is worth 15 points. 10% points off for being late. You may work by yourself or in pairs.

More information

Vector, Matrix, and Tensor Derivatives

Vector, Matrix, and Tensor Derivatives Vector, Matrix, and Tensor Derivatives Erik Learned-Miller The purpose of this document is to help you learn to take derivatives of vectors, matrices, and higher order tensors (arrays with three dimensions

More information

VECTORS AND MATRICES

VECTORS AND MATRICES VECTORS AND MATRICES COMPUTER SESSION C1 BACKGROUND PREPARATIONS The session is divided into two parts. The first part involves experimenting in the Mathematics Laboratory and the second part involves

More information

Laboratory handout 5 Mode shapes and resonance

Laboratory handout 5 Mode shapes and resonance laboratory handouts, me 34 82 Laboratory handout 5 Mode shapes and resonance In this handout, material and assignments marked as optional can be skipped when preparing for the lab, but may provide a useful

More information

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013 Today s Objectives ENGR 105: Feedback Control Design Winter 2013 Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013 1. introduce the MATLAB Control System Toolbox

More information

Lab 1g: Horizontally Forced Pendulum & Chaotic Motion

Lab 1g: Horizontally Forced Pendulum & Chaotic Motion 58:080 Experimental Engineering OBJECTIVE Lab 1g: Horizontally Forced Pendulum & Chaotic Motion The objective of this lab is to study horizontally forced oscillations of a pendulum. This will be done trough

More information

Laboratory 1. Solving differential equations with nonzero initial conditions

Laboratory 1. Solving differential equations with nonzero initial conditions Laboratory 1 Solving differential equations with nonzero initial conditions 1. Purpose of the exercise: - learning symbolic and numerical methods of differential equations solving with MATLAB - using Simulink

More information

The Control of an Inverted Pendulum

The Control of an Inverted Pendulum The Control of an Inverted Pendulum AAE 364L This experiment is devoted to the inverted pendulum. Clearly, the inverted pendulum will fall without any control. We will design a controller to balance the

More information

DISCRETE RANDOM VARIABLES EXCEL LAB #3

DISCRETE RANDOM VARIABLES EXCEL LAB #3 DISCRETE RANDOM VARIABLES EXCEL LAB #3 ECON/BUSN 180: Quantitative Methods for Economics and Business Department of Economics and Business Lake Forest College Lake Forest, IL 60045 Copyright, 2011 Overview

More information

Richter Scale and Logarithms

Richter Scale and Logarithms activity 7.1 Richter Scale and Logarithms In this activity, you will investigate earthquake data and explore the Richter scale as a measure of the intensity of an earthquake. You will consider how numbers

More information

MATLAB Ordinary Differential Equation (ODE) solver for a simple example 1. Introduction

MATLAB Ordinary Differential Equation (ODE) solver for a simple example 1. Introduction MATLAB Ordinary Differential Equation (ODE) solver for a simple example 1. Introduction Differential equations are a convenient way to express mathematically a change of a dependent variable (e.g. concentration

More information

Some hints for the Radioactive Decay lab

Some hints for the Radioactive Decay lab Some hints for the Radioactive Decay lab Edward Stokan, March 7, 2011 Plotting a histogram using Microsoft Excel The way I make histograms in Excel is to put the bounds of the bin on the top row beside

More information

EE/ME/AE324: Dynamical Systems. Chapter 4: Block Diagrams

EE/ME/AE324: Dynamical Systems. Chapter 4: Block Diagrams EE/ME/AE324: Dynamical Systems Chapter 4: Block Diagrams and Computer Simulation Block Diagrams A block diagram is an interconnection of: Blocks representing math operations Wires representing signals

More information

Leaf Spring (Material, Contact, geometric nonlinearity)

Leaf Spring (Material, Contact, geometric nonlinearity) 00 Summary Summary Nonlinear Static Analysis - Unit: N, mm - Geometric model: Leaf Spring.x_t Leaf Spring (Material, Contact, geometric nonlinearity) Nonlinear Material configuration - Stress - Strain

More information

Foundations of Computation

Foundations of Computation The Australian National University Semester 2, 2018 Research School of Computer Science Tutorial 1 Dirk Pattinson Foundations of Computation The tutorial contains a number of exercises designed for the

More information

DSP First. Laboratory Exercise #10. The z, n, and ˆω Domains

DSP First. Laboratory Exercise #10. The z, n, and ˆω Domains DSP First Laboratory Exercise #10 The z, n, and ˆω Domains 1 Objective The objective for this lab is to build an intuitive understanding of the relationship between the location of poles and zeros in the

More information

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in

More information

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012 BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012 Introduction Maple is a powerful collection of routines to aid in the solution of mathematical problems

More information

Laboratory handouts, ME 340

Laboratory handouts, ME 340 Laboratory handouts, ME 340 This document contains summary theory, solved exercises, prelab assignments, lab instructions, and report assignments for Lab 4. 2014-2016 Harry Dankowicz, unless otherwise

More information

Looking hard at algebraic identities.

Looking hard at algebraic identities. Looking hard at algebraic identities. Written by Alastair Lupton and Anthony Harradine. Seeing Double Version 1.00 April 007. Written by Anthony Harradine and Alastair Lupton. Copyright Harradine and Lupton

More information

Lab 5: Nonlinear Systems

Lab 5: Nonlinear Systems Lab 5: Nonlinear Systems Goals In this lab you will use the pplane6 program to study two nonlinear systems by direct numerical simulation. The first model, from population biology, displays interesting

More information

MATERIAL MECHANICS, SE2126 COMPUTER LAB 3 VISCOELASTICITY. k a. N t

MATERIAL MECHANICS, SE2126 COMPUTER LAB 3 VISCOELASTICITY. k a. N t MATERIAL MECHANICS, SE2126 COMPUTER LAB 3 VISCOELASTICITY N t i Gt () G0 1 i ( 1 e τ = α ) i= 1 k a k b τ PART A RELAXING PLASTIC PAPERCLIP Consider an ordinary paperclip made of plastic, as they more

More information

LINEAR ALGEBRA KNOWLEDGE SURVEY

LINEAR ALGEBRA KNOWLEDGE SURVEY LINEAR ALGEBRA KNOWLEDGE SURVEY Instructions: This is a Knowledge Survey. For this assignment, I am only interested in your level of confidence about your ability to do the tasks on the following pages.

More information

Athena Visual Software, Inc. 1

Athena Visual Software, Inc. 1 Athena Visual Studio Visual Kinetics Tutorial VisualKinetics is an integrated tool within the Athena Visual Studio software environment, which allows scientists and engineers to simulate the dynamic behavior

More information

Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras

Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras Module No. # 07 Lecture No. # 04 Ordinary Differential Equations (Initial Value

More information

Lecture 10: Powers of Matrices, Difference Equations

Lecture 10: Powers of Matrices, Difference Equations Lecture 10: Powers of Matrices, Difference Equations Difference Equations A difference equation, also sometimes called a recurrence equation is an equation that defines a sequence recursively, i.e. each

More information

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group NUMERICAL METHODS lor CHEMICAL ENGINEERS Using Excel', VBA, and MATLAB* VICTOR J. LAW CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup,

More information

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations Supplemental Unit S5. Solving Initial Value Differential Equations Defining the Problem This supplemental unit describes how to solve a set of initial value ordinary differential equations (ODEs) numerically.

More information

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual Rotary Motion Servo Plant: SRV02 Rotary Experiment #11: 1-DOF Torsion 1-DOF Torsion Position Control using QuaRC Student Manual Table of Contents 1. INTRODUCTION...1 2. PREREQUISITES...1 3. OVERVIEW OF

More information

Think about systems of linear equations, their solutions, and how they might be represented with matrices.

Think about systems of linear equations, their solutions, and how they might be represented with matrices. Think About This Situation Unit 4 Lesson 3 Investigation 1 Name: Think about systems of linear equations, their solutions, and how they might be represented with matrices. a Consider a system of two linear

More information

Solving Differential Equations on 2-D Geometries with Matlab

Solving Differential Equations on 2-D Geometries with Matlab Solving Differential Equations on 2-D Geometries with Matlab Joshua Wall Drexel University Philadelphia, PA 19104 (Dated: April 28, 2014) I. INTRODUCTION Here we introduce the reader to solving partial

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and

More information

Introduction to Computational Neuroscience

Introduction to Computational Neuroscience CSE2330 Introduction to Computational Neuroscience Basic computational tools and concepts Tutorial 1 Duration: two weeks 1.1 About this tutorial The objective of this tutorial is to introduce you to: the

More information

The Rain in Spain - Tableau Public Workbook

The Rain in Spain - Tableau Public Workbook The Rain in Spain - Tableau Public Workbook This guide will take you through the steps required to visualize how the rain falls in Spain with Tableau public. (All pics from Mac version of Tableau) Workbook

More information

Making an H-R diagram Earth & Sky

Making an H-R diagram Earth & Sky Making an H-R diagram Earth & Sky Name: Introduction Astronomers have discovered relationships between the surface temperatures and luminosities (brightnesses) of stars. These relationships are often presented

More information

Lecture 4. Programming

Lecture 4. Programming Lecture 4 Advanced Matlab Programming Announcements Hands-on Session on Friday 1318 EB Read Chapters 3-6 in your MATLAB book HW 2 opens up Friday evening Today Numerical analysis - I Visualization I Some

More information

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout SRV02-Series Rotary Experiment # 1 Position Control Student Handout SRV02-Series Rotary Experiment # 1 Position Control Student Handout 1. Objectives The objective in this experiment is to introduce the

More information

Read through A Graphing Checklist for Physics Graduate Students before submitting any plots in this module. See the course website for the link.

Read through A Graphing Checklist for Physics Graduate Students before submitting any plots in this module. See the course website for the link. Module C2: MatLab The Physics and Astronomy Department has several copies of MATLAB installed on computers that can be accessed by students. MATLAB is a highly developed software package that allows the

More information

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is Linear Algebra, Spring 206 Homework 3 Name: Problem : (3 points) Recall that the dot product of two vectors in R 3 is a x b y = ax + by + cz, c z and this is essentially the same as the matrix multiplication

More information

1. The Basic X-Y Scatter Plot

1. The Basic X-Y Scatter Plot 1. The Basic X-Y Scatter Plot EXCEL offers a wide range of plots; however, this discussion will be restricted to generating XY scatter plots in various formats. The easiest way to begin is to highlight

More information

Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains

Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains Signal Processing First Lab : PeZ - The z, n, and ˆω Domains The lab report/verification will be done by filling in the last page of this handout which addresses a list of observations to be made when

More information

Determination of Density 1

Determination of Density 1 Introduction Determination of Density 1 Authors: B. D. Lamp, D. L. McCurdy, V. M. Pultz and J. M. McCormick* Last Update: February 1, 2013 Not so long ago a statistical data analysis of any data set larger

More information

Boyle s Law and Charles Law Activity

Boyle s Law and Charles Law Activity Boyle s Law and Charles Law Activity Introduction: This simulation helps you to help you fully understand 2 Gas Laws: Boyle s Law and Charles Law. These laws are very simple to understand, but are also

More information

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION August 7, 007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION PURPOSE: This experiment illustrates the numerical solution of Laplace's Equation using a relaxation method. The results of the relaxation method

More information

Electric Fields and Equipotentials

Electric Fields and Equipotentials OBJECTIVE Electric Fields and Equipotentials To study and describe the two-dimensional electric field. To map the location of the equipotential surfaces around charged electrodes. To study the relationship

More information

Double Inverted Pendulum (DBIP)

Double Inverted Pendulum (DBIP) Linear Motion Servo Plant: IP01_2 Linear Experiment #15: LQR Control Double Inverted Pendulum (DBIP) All of Quanser s systems have an inherent open architecture design. It should be noted that the following

More information

PHY 111L Activity 2 Introduction to Kinematics

PHY 111L Activity 2 Introduction to Kinematics PHY 111L Activity 2 Introduction to Kinematics Name: Section: ID #: Date: Lab Partners: TA initials: Objectives 1. Introduce the relationship between position, velocity, and acceleration 2. Investigate

More information

This is the third of 3 parts detailing my experience of auto guiding for astrophotography.

This is the third of 3 parts detailing my experience of auto guiding for astrophotography. AstronomyShed Tutorials Autoguiding - Part 3 - Using you autoguiding setup This is the third of 3 parts detailing my experience of auto guiding for astrophotography. Prerequisites In writing this article

More information

How to Convert USGS Topographic GeoPDF 1 Maps to GeoTIFF using ArcGIS 10.4

How to Convert USGS Topographic GeoPDF 1 Maps to GeoTIFF using ArcGIS 10.4 How to Convert USGS Topographic GeoPDF 1 Maps to GeoTIFF using ArcGIS 10.4 This tutorial assumes that you have: 1) downloaded some USGS geopdfs, 2) a pdf reader such as Adobe Acrobat, and 3) ArcGIS 10.4

More information

Galactic Rotation Activity*

Galactic Rotation Activity* Galactic Rotation Activity* Neutral hydrogen atoms (H I) consist of a single proton and a single electron. The electron and proton can spin in the same direction (parallel) or in the opposite direction

More information

UNIVERSIDADE FEDERAL DO AMAZONAS (UFAM) MATERIAL DE AULA PRÁTICA 01 MODELAGEM E SIMULAÇÃO MATEMÁTICA DE SISTEMAS FÍSICOS

UNIVERSIDADE FEDERAL DO AMAZONAS (UFAM) MATERIAL DE AULA   PRÁTICA 01 MODELAGEM E SIMULAÇÃO MATEMÁTICA DE SISTEMAS FÍSICOS UNIVERSIDADE FEDERAL DO AMAZONAS (UFAM) IDENTIFICAÇÃO DA DISCIPLINA Professor Pierre Vilar Dantas Disciplina Laboratório de Sistemas de Controle Horário Sextas, 16h00min às 18h00min Data 17/08/2018 Turma(s)

More information

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012 Physics with Matlab and Mathematica Exercise #1 28 Aug 2012 You can work this exercise in either matlab or mathematica. Your choice. A simple harmonic oscillator is constructed from a mass m and a spring

More information

ME scope Application Note 28

ME scope Application Note 28 App Note 8 www.vibetech.com 3/7/17 ME scope Application Note 8 Mathematics of a Mass-Spring-Damper System INTRODUCTION In this note, the capabilities of ME scope will be used to build a model of the mass-spring-damper

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MATLAB sessions: Laboratory 4 MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for

More information

Analysis of Dynamic Systems Using Bond Graph Method Through SIMULINK

Analysis of Dynamic Systems Using Bond Graph Method Through SIMULINK Analysis of Dynamic Systems Using Bond Graph Method Through SIMULINK José Antonio Calvo, Carolina Álvarez- Caldas and José Luis San Román Universidad Carlos III de Madrid Spain. Introduction The dynamic

More information

LAB 2 - ONE DIMENSIONAL MOTION

LAB 2 - ONE DIMENSIONAL MOTION Name Date Partners L02-1 LAB 2 - ONE DIMENSIONAL MOTION OBJECTIVES Slow and steady wins the race. Aesop s fable: The Hare and the Tortoise To learn how to use a motion detector and gain more familiarity

More information

Note: Please use the actual date you accessed this material in your citation.

Note: Please use the actual date you accessed this material in your citation. MIT OpenCourseWare http://ocw.mit.edu 18.06 Linear Algebra, Spring 2005 Please use the following citation format: Gilbert Strang, 18.06 Linear Algebra, Spring 2005. (Massachusetts Institute of Technology:

More information

Math 98 - Introduction to MATLAB Programming. Spring Lecture 3

Math 98 - Introduction to MATLAB Programming. Spring Lecture 3 Reminders Instructor: Chris Policastro Class Website: https://math.berkeley.edu/~cpoli/math98/fall2016.html Assignment Submission: https://bcourses.berkeley.edu Homework 2 1 Due September 8th by 11:59pm

More information

Chem 1 Kinetics. Objectives. Concepts

Chem 1 Kinetics. Objectives. Concepts Chem 1 Kinetics Objectives 1. Learn some basic ideas in chemical kinetics. 2. Understand how the computer visualizations can be used to benefit the learning process. 3. Understand how the computer models

More information

State Feedback MAE 433 Spring 2012 Lab 7

State Feedback MAE 433 Spring 2012 Lab 7 State Feedback MAE 433 Spring 1 Lab 7 Prof. C. Rowley and M. Littman AIs: Brandt Belson, onathan Tu Princeton University April 4-7, 1 1 Overview This lab addresses the control of an inverted pendulum balanced

More information

MITOCW ocw f99-lec30_300k

MITOCW ocw f99-lec30_300k MITOCW ocw-18.06-f99-lec30_300k OK, this is the lecture on linear transformations. Actually, linear algebra courses used to begin with this lecture, so you could say I'm beginning this course again by

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 017/018 DR. ANTHONY BROWN. Lines and Their Equations.1. Slope of a Line and its y-intercept. In Euclidean geometry (where

More information

Identity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans =

Identity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans = Very Basic MATLAB Peter J. Olver October, 2003 Matrices: Type your matrix as follows: Use, or space to separate entries, and ; or return after each row. EDU> [;5 0-3 6;; - 5 ] or EDU> [,5,6,-9;5,0,-3,6;7,8,5,0;-,,5,]

More information

Simple Harmonic Motion

Simple Harmonic Motion Introduction Simple Harmonic Motion The simple harmonic oscillator (a mass oscillating on a spring) is the most important system in physics. There are several reasons behind this remarkable claim: Any

More information

Hooke s Law. Equipment. Introduction and Theory

Hooke s Law. Equipment. Introduction and Theory Hooke s Law Objective to test Hooke s Law by measuring the spring constants of different springs and spring systems to test whether all elastic objects obey Hooke s Law Equipment two nearly identical springs,

More information

A First Course on Kinetics and Reaction Engineering Example S3.1

A First Course on Kinetics and Reaction Engineering Example S3.1 Example S3.1 Problem Purpose This example shows how to use the MATLAB script file, FitLinSR.m, to fit a linear model to experimental data. Problem Statement Assume that in the course of solving a kinetics

More information

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Lab 1 Uniform Motion - Graphing and Analyzing Motion Lab 1 Uniform Motion - Graphing and Analyzing Motion Objectives: < To observe the distance-time relation for motion at constant velocity. < To make a straight line fit to the distance-time data. < To interpret

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 75 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP. Use MATLAB solvers for solving higher order ODEs and systems

More information

Roberto s Notes on Linear Algebra Chapter 10: Eigenvalues and diagonalization Section 3. Diagonal matrices

Roberto s Notes on Linear Algebra Chapter 10: Eigenvalues and diagonalization Section 3. Diagonal matrices Roberto s Notes on Linear Algebra Chapter 10: Eigenvalues and diagonalization Section 3 Diagonal matrices What you need to know already: Basic definition, properties and operations of matrix. What you

More information

Tutorial 8 Raster Data Analysis

Tutorial 8 Raster Data Analysis Objectives Tutorial 8 Raster Data Analysis This tutorial is designed to introduce you to a basic set of raster-based analyses including: 1. Displaying Digital Elevation Model (DEM) 2. Slope calculations

More information

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes v. 10.1 WMS 10.1 Tutorial GSSHA WMS Basics Creating Feature Objects and Mapping Attributes to the 2D Grid Populate hydrologic parameters in a GSSHA model using land use and soil data Objectives This tutorial

More information

Properties of Linear Transformations from R n to R m

Properties of Linear Transformations from R n to R m Properties of Linear Transformations from R n to R m MATH 322, Linear Algebra I J. Robert Buchanan Department of Mathematics Spring 2015 Topic Overview Relationship between the properties of a matrix transformation

More information

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo) Contents EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo) 1 Introduction 1 1.1 Discovery learning in the Controls Teaching Laboratory.............. 1 1.2 A Laboratory Notebook...............................

More information

Contents. 13. Graphs of Trigonometric Functions 2 Example Example

Contents. 13. Graphs of Trigonometric Functions 2 Example Example Contents 13. Graphs of Trigonometric Functions 2 Example 13.19............................... 2 Example 13.22............................... 5 1 Peterson, Technical Mathematics, 3rd edition 2 Example 13.19

More information

Chapter 7. Homogeneous equations with constant coefficients

Chapter 7. Homogeneous equations with constant coefficients Chapter 7. Homogeneous equations with constant coefficients It has already been remarked that we can write down a formula for the general solution of any linear second differential equation y + a(t)y +

More information

Unit Trip April 20, 2011, 13:40:53 CDT. McDonald Angle Relative to U.T. Austin Second

Unit Trip April 20, 2011, 13:40:53 CDT. McDonald Angle Relative to U.T. Austin Second _35_EE394J_Spring11 Order_Illustrator.doc Ringdown Analysis of Voltage Phase Angle Using 30 Point-per- Synchrophasor Data and the Excel Solver 52.5 57.75.19 52.95 0.95-1.19 53.30 2.28 1.84 0.544 0.127

More information

ECE 320 Linear Control Systems Winter Lab 1 Time Domain Analysis of a 1DOF Rectilinear System

ECE 320 Linear Control Systems Winter Lab 1 Time Domain Analysis of a 1DOF Rectilinear System Amplitude ECE 3 Linear Control Systems Winter - Lab Time Domain Analysis of a DOF Rectilinear System Objective: Become familiar with the ECP control system and MATLAB interface Collect experimental data

More information

CHUNG-ANG UNIVERSITY Linear Algebra Spring Solutions to Computer Project #2

CHUNG-ANG UNIVERSITY Linear Algebra Spring Solutions to Computer Project #2 CHUNG-ANG UNIVERSITY Linear Algebra Spring 2014 s to Computer Project #2 Problem 2.1 Find the adjacency matrix for the following graph (all edges are bidirectional). P5 From the given bidirectional graph

More information

Exercises for Windows

Exercises for Windows Exercises for Windows CAChe User Interface for Windows Select tool Application window Document window (workspace) Style bar Tool palette Select entire molecule Select Similar Group Select Atom tool Rotate

More information

Qualitative Analysis of Tumor-Immune ODE System

Qualitative Analysis of Tumor-Immune ODE System of Tumor-Immune ODE System LG de Pillis and AE Radunskaya August 15, 2002 This work was supported in part by a grant from the WM Keck Foundation 0-0 QUALITATIVE ANALYSIS Overview 1 Simplified System of

More information

Center of Mass. Evaluation copy

Center of Mass. Evaluation copy Center of Mass Experiment 19 INTRODUCTION In the most of the previous experiments you have examined the motion of a single object as it underwent a variety of motions. You learned that an object subject

More information

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis Appendix 3B MATLAB Functions for Modeling and Time-domain analysis MATLAB control system Toolbox contain the following functions for the time-domain response step impulse initial lsim gensig damp ltiview

More information

Getting Started with Communications Engineering

Getting Started with Communications Engineering 1 Linear algebra is the algebra of linear equations: the term linear being used in the same sense as in linear functions, such as: which is the equation of a straight line. y ax c (0.1) Of course, if we

More information