ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips
|
|
- Ashlie Jenkins
- 6 years ago
- Views:
Transcription
1 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 control systems is slightly different from that in which you may have built models for other classes such as ME6. In Controls, we use the Simulink block diagram form to represent most or all of the mathematics in our system instead of placing large portions of our code inside s-function blocks. We do this because hiding our code inside s-functions makes it more difficult to visualize, modify, and debug our simulations; also, it is important to be able to view and record signals inside the simulation as well as the inputs and outputs. Building the model from many simple blocks allows us to quickly view what s happening anywhere in the model. An Example Below is shown a simple example model. This model represents the dynamic equation ẋ =.5x(t) + u(t). The variable x is the state of the system; it could be the velocity of a vehicle for example. The input to the system, which is some function of time, is u(t). Here, u(t) is a step input. The step input is a time-varying value which changes from one specified value to another at a specified time. In this example the input changes from to at a simulation time of one second. The number.5 is the feedback gain of the system; for reasons you will soon learn, it must be negative for the system to behave. Note how the number.5 is combined with a negative sign on the summing block to create a gain of.5. x dot Step Input u(t) x dot s Integrator x Scope.5 Feedback simout To Workspace Model Components The system inputs come from the Sources set. You will use step inputs and constants frequently. Double-click on each to set its parameters; for example, a step input has a beginning value, and ending value, and the time at which it changes from one to the other. Common Math Operations include addition and multiplication. Addition is accomplished using summation blocks. Double-clicking on a block allows you to change
2 the number of inputs and their polarity. For example, the control string +-- creates a block which implements the function output = a b c. (The vertical bar controls the positions of the inputs on the summing block.) Multiplication comes in two flavors, gain and general. Gains are multiplication by a constant, as the gain.5 in the example. (Note that the gain block was flipped left-to-right with <Ctrl-I> so that the signal can travel in the correct direction across the page.) General multiplication refers to simply multiplying two numbers together and is much less commonly used in ME, which focuses on linear systems that cannot contain multiplication by non-constant numbers. Dynamic systems involve integration, which comes from the Continuous set. The integrator is shown using its Laplace transform designation, /s. To view and save your output data from Simulink, use Sinks. Two are shown. The oscilloscope ( Scope ) allows you to create graphs of system data quickly. Note how a multiplexer (or Mux, the solid bar) is used to combine two signals before they go into the scope. This causes the scope to plot two data on one graph axis. If you want two separate graphs with one plot each, double-click on the scope and set it to use inputs. Oscilloscope graphs can be printed, but the formatting and labels cannot be modified sufficiently to create good graphs for lab reports. Therefore, we use the To Workspace block to save simulation output in a variable called simout. This actually causes two variables to be created called tout and simout. The use of these variables is discussed below. Important note: Double-click on the To Workspace block and change its save format to Array before running your simulation. This is necessary to get output data in easy-to-use matrix form. If you need to save more than one signal from a test (such as position and velocity), there are two ways to do this. First you can use a multiplexer to combine multiple channels of data into a single array before saving the data. You could also use two or more to-workspace blocks, each with a different variable name. Choose whichever method you prefer. Running the Simulation Before running your simulation, you should adjust the simulation settings in the dialog box from menu item Simulation Simulation parameters... Three settings will be important here: Set the stop time so that the significant behavior of the system is clearly shown. If dynamic behavior is still happening at the end of the simulation, you should set a longer time; if all the action takes place over at the left side of the plot and the graph shows mostly straight lines after the fun stuff has died out, shorten it. Adjust the relative tolerance. The default value of is too imprecise for most ME work. Change it to 9. Go to the Workspace I/O index tab and un-check the box which limits data
3 points to last. This is needed to ensure that all your data is saved and can be plotted. Plotting Simulink Data In order to get the best looking graphs, we save our data to the Matlab workspace, where it shows up in variables called tout and simout. The first contains simulated times. These times are controlled by the part of Simulink which solves differential equations and may not be equally spaced. The second variable, simout, is an array of data; each of its columns contains values of one variable. The expression simout(:,) refers to all the data in column number of the array; simout(:,) refers to the second column, and so on. If you used multiple to-workspace blocks, you may have several more output variables; in this demonstration, we have used a multiplexer to combine two signals and save them with one to-workspace block. This data can be plotted using a script similar to the following: subplot (,, ); plot (tout, simout(:,)); title ( Derivative of X ); xlabel ( ); ylabel ( Value [units/sec] ); axis ([ -..]); subplot (,, ); plot (tout, simout(:,), -- ); title ( Value of X ); xlabel ( ); ylabel ( Value [units] ); axis ([ - 5]); % rows, one column, first graph % Default line type is solid % You must have graph title % and axis labels % This adjusts the axis scales % rows, one column, second graph % The -- means dashed line Derivative of X Value [units/sec] Value of X Value [units]
4 Note that you can vary the number of curves on one plot and the number of plots on one page. If we had wanted to plot two curves on one axis, we would have used a command like the following: plot (tout, simout(:,), tout, simout(:,), -- ); For your plotting needs, you may want to read the Matlab help pages on the following commands: plot, title, xlabel, ylabel, subplot, hold, and grid. Plotting Experimental and Simulation Data Together Oscilloscope Data For some experiments, you will need to plot data from the oscilloscope on the same graph axes as data from your simulation. This is most easily done by measuring data from an oscilloscope printout and entering it into Matlab by hand. The process might seem tedious, but for only or points it doesn t take long. First take your measurement, using proper triggering procedure (see the Triggering a Scope handout for the proper procedure), and print out the oscilloscope screen. Then measure the coordinates of data points by hand on the screen. Usually you should measure about points; sometimes you will want to measure more closely spaced points near an interesting feature on the graph and fewer points elsewhere. Now enter the coordinates of these points in Matlab as vectors one vector for time coordinates and one for each measured quantity. Note that an easy way to create a vector containing evenly spaced values in Matlab is to issue a command such as t = [:.5:]. This creates a vector of evenly spaced values,.5 apart, running from to. t = [ ]; x = [ ]; plot (tout, simout(:,), t, x, o ); title ( System Performance Test ); xlabel ( ); ylabel ( Speed [knots] ); System Performance Test Speed [knots] The formatting code o is what causes the experimental data to show up as little circles;. makes dots and + makes small plus signs. LabView Data The plotting of data from a LabView program works in much the same way as does plotting of hand data, except you need to load your experimental data from a file. This is done with the load command as follows:
5 data = load ( mydata.txt ); plot (tout, simout (:,), data(:,), data(:,), + ); title ( LabView Experiment Results ); xlabel ( ); ylabel ( Potential [volts] ); LabView Experiment Results Potential [volts] The data file mydata.txt is assumed to contain time in the first column and system output in the second column (and any subsequent columns if more data is saved). This format is used by the LabView programs in the controls lab.
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 informationIntroduction 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 informationBME 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 informationSession 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 informationIntroduction 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 informationINTRODUCTION 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 informationSIMULINK 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 informationELEC 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 informationSIMULINK 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 informationUNIVERSITI 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 informationECE-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 informationEric W. Hansen. The basic data type is a matrix This is the basic paradigm for computation with MATLAB, and the key to its power. Here s an example:
Using MATLAB for Stochastic Simulation. Eric W. Hansen. Matlab Basics Introduction MATLAB (MATrix LABoratory) is a software package designed for efficient, reliable numerical computing. Using MATLAB greatly
More informationIntroduction 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 information1. Register an account on: using your Oxford address
1P10a MATLAB 1.1 Introduction MATLAB stands for Matrix Laboratories. It is a tool that provides a graphical interface for numerical and symbolic computation along with a number of data analysis, simulation
More informationECE 3793 Matlab Project 1
ECE 3793 Matlab Project 1 Spring 2017 Dr. Havlicek DUE: 02/04/2017, 11:59 PM Introduction: You will need to use Matlab to complete this assignment. So the first thing you need to do is figure out how you
More informationExperiment 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 informationUNIVERSITI 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 informationMAT 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 informationLecture 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 informationIntroduction 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 informationChapter 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 informationPowerPoints 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 informationELEC4042 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 informationMatlab 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 informationExperiment 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 informationPC-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 informationMATH 51: MATLAB HOMEWORK 3
MATH 5: MATLAB HOMEWORK Experimental data generally suffers from imprecision, though frequently one can predict how data should behave by graphing results collected from experiments. For instance, suppose
More informationSIMULINK 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 informationMATLAB 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 informationAssignment 02 (Due: Monday, February 1, 2016)
Assignment 02 (Due: Monday, February 1, 2016) CSCE 155N 1 Lab Objectives Improve your understanding of arrays and array operations Differentiate array operators and matrix operators Create, access, modify,
More informationMatlab 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 informationGeneral Program Description
General Program Description This program is designed to interpret the results of a sampling inspection, for the purpose of judging compliance with chosen limits. It may also be used to identify outlying
More informationIntroduction to Matlab to Accompany Linear Algebra. Douglas Hundley Department of Mathematics and Statistics Whitman College
Introduction to Matlab to Accompany Linear Algebra Douglas Hundley Department of Mathematics and Statistics Whitman College August 27, 2018 2 Contents 1 Getting Started 5 1.1 Before We Begin........................................
More informationEE 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 informationThe 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 informationLab 1- Introduction to Motion
Partner : Purpose Partner 2: Lab - Section: The purpose of this lab is to learn via a motion detector the relationship between position and velocity. Remember that this device measures the position of
More informationLaboratory 1 Introduction to MATLAB for Signals and Systems
Laboratory 1 Introduction to MATLAB for Signals and Systems INTRODUCTION to MATLAB MATLAB is a powerful computing environment for numeric computation and visualization. MATLAB is designed for ease of use
More informationAMS 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 informationLecture 3 - Template and Vectors
Lecture - Template and Vectors Homework Format and Template: We ll each develop a simple template to use to start any new homework. The idea of a template is to layout the basic structure of what goes
More informationAppendix A. Introduction to MATLAB. A.1 What Is MATLAB?
Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system
More informationDepartment 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 informationCreates 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 informationGetting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text
Chapter 1 Getting Started How to Get Matlab Matlab physically resides on each of the computers in the Olin Hall labs. See your instructor if you need an account on these machines. If you are going to go
More informationA Guide to Using Some Basic MATLAB Functions
A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available
More informationNote 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 informationLab. 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 informationLab 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 informationAdvanced Computer Architecture Lab 3 Scalability of the Gauss-Seidel Algorithm
Advanced Computer Architecture Lab 3 Scalability of the Gauss-Seidel Algorithm Andreas Sandberg 1 Introduction The purpose of this lab is to: apply what you have learned so
More information[ 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 information16.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 informationMatDeck tips. Basic. :=- assignment of variable values; assign value to variable a with code a := value
MatDeck tips Basic :=- assignment of variable values; assign value to variable a with code a := value = - displaying variable value; display value stored in the variable a with code a = Alt continue with
More informationIntroduction to Matlab
What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created
More informationGetting 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 informationIntroduction 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 informationPART 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 informationIntroduction to MatLab. Introduction to MatLab K. Craig 1
Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations
More informationExample: 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 informationENGR Fall Exam 1 PRACTICE EXAM
ENGR 13100 Fall 2012 Exam 1 PRACTICE EXAM INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions.
More informationWhat is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment
What is MATLAB? MATLAB PROGRAMMING Stands for MATrix LABoratory A software built around vectors and matrices A great tool for numerical computation of mathematical problems, such as Calculus Has powerful
More informationCapstone Appendix. A guide to your lab computer software
Capstone Appendix A guide to your lab computer software Important Notes Many of the Images will look slightly different from what you will see in lab. This is because each lab setup is different and so
More informationEEE161 Applied Electromagnetics Laboratory 1
EEE161 Applied Electromagnetics Laboratory 1 Instructor: Dr. Milica Marković Office: Riverside Hall 3028 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/ milica This laboratory exercise will introduce
More informationENGI Parametric & Polar Curves Page 2-01
ENGI 3425 2. Parametric & Polar Curves Page 2-01 2. Parametric and Polar Curves Contents: 2.1 Parametric Vector Functions 2.2 Parametric Curve Sketching 2.3 Polar Coordinates r f 2.4 Polar Curve Sketching
More informationAdditional Plot Types and Plot Formatting
Additional Plot Types and Plot Formatting The xy plot is the most commonly used plot type in MAT- LAB Engineers frequently plot either a measured or calculated dependent variable, say y, versus an independent
More informationLab 1 Introduction to MATLAB and Scripts
Lab 1 Introduction to MATLAB and Scripts EE 235: Continuous-Time Linear Systems Department of Electrical Engineering University of Washington The development of these labs was originally supported by the
More informationThe value of f(t) at t = 0 is the first element of the vector and is obtained by
MATLAB Tutorial This tutorial will give an overview of MATLAB commands and functions that you will need in ECE 366. 1. Getting Started: Your first job is to make a directory to save your work in. Unix
More informationTextbook. Topic 6: Functions. Motivation. What is a Function? What s a function? How can we use functions to write better software?
Textbook Topic 6: Functions What s a? How can we use s to write better software? Strongly Recommended Exercises The Python Workbook: 85, 86, 98 and 103 Recommended Exercises The Python Workbook: 84, 88,
More informationSimulink 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 informationSTAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial
STAT/MATH 395 A - PROBABILITY II UW Winter Quarter 2016 Néhémy Lim Matlab Tutorial 1 Introduction Matlab (standing for matrix laboratory) is a high-level programming language and interactive environment
More informationMotion Graphs. Plotting position against time can tell you a lot about motion. Let's look at the axes:
Motion Graphs 1 Name Motion Graphs Describing the motion of an object is occasionally hard to do with words. Sometimes graphs help make motion easier to picture, and therefore understand. Remember: Motion
More informationDSP 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 informationWorking with Charts Stratum.Viewer 6
Working with Charts Stratum.Viewer 6 Getting Started Tasks Additional Information Access to Charts Introduction to Charts Overview of Chart Types Quick Start - Adding a Chart to a View Create a Chart with
More informationPERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" Matlab Fun - 2
Table of Contents PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" - 2 What? Matlab can be fun... 1 Plot the Sine Function...
More informationIntroduction to Matlab
Introduction to Matlab What is Matlab The software program called Matlab (short for MATrix LABoratory) is arguably the world standard for engineering- mainly because of its ability to do very quick prototyping.
More informationSTIPlotDigitizer. User s Manual
STIPlotDigitizer User s Manual Table of Contents What is STIPlotDigitizer?... 3 Installation Guide... 3 Initializing STIPlotDigitizer... 4 Project GroupBox... 4 Import Image GroupBox... 5 Exit Button...
More informationWhat 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 information2D 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 informationEE 216 Experiment 1. MATLAB Structure and Use
EE216:Exp1-1 EE 216 Experiment 1 MATLAB Structure and Use This first laboratory experiment is an introduction to the use of MATLAB. The basic computer-user interfaces, data entry techniques, operations,
More informationTable of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7
MATLAB Table of Contents Introduction.*.. 7 About This Book 1 Foolish Assumptions 2 Icons Used in This Book 3 Beyond the Book 3 Where to Go from Here 4 Part /: Getting Started With MATLAB 5 Chapter 1:
More informationMATLAB Tutorial. Primary Author: Shoumik Chatterjee Secondary Author: Dr. Chuan Li
MATLAB Tutorial Primary Author: Shoumik Chatterjee Secondary Author: Dr. Chuan Li 1 Table of Contents Section 1: Accessing MATLAB using RamCloud server...3 Section 2: MATLAB GUI Basics. 6 Section 3: MATLAB
More informationPage 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01
Page 1 of E Spring Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Practice Midterm 1 minutes pts Question Points Grade 1 4 3 6 4 16 6 1 Total Notes (a) Write your name and your SID on the top right
More informationSmall rectangles (and sometimes squares like this
Lab exercise 1: Introduction to LabView LabView is software for the real time acquisition, processing and visualization of measured data. A LabView program is called a Virtual Instrument (VI) because it,
More informationFall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB
Fall 2014 MAT 375 Numerical Methods Introduction to Programming using MATLAB Some useful links 1 The MOST useful link: www.google.com 2 MathWorks Webcite: www.mathworks.com/help/matlab/ 3 Wikibooks on
More informationMatlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen.
University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2015 Matlab Tutorial 1 Overview The goal of this tutorial is to help you get familiar with MATLAB
More informationIntroduction to Octave/Matlab. Deployment of Telecommunication Infrastructures
Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,
More informationMechanical Engineering Department Second Year (2015)
Lecture 7: Graphs Basic Plotting MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. This section describes a few of the most
More informationPre-Lab Excel Problem
Pre-Lab Excel Problem Read and follow the instructions carefully! Below you are given a problem which you are to solve using Excel. If you have not used the Excel spreadsheet a limited tutorial is given
More information1 Introduction to Matlab
1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,
More informationBasic Graphs. Dmitry Adamskiy 16 November 2011
Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken
More informationMATLAB Modul 3. Introduction
MATLAB Modul 3 Introduction to Computational Science: Modeling and Simulation for the Sciences, 2 nd Edition Angela B. Shiflet and George W. Shiflet Wofford College 2014 by Princeton University Press Introduction
More informationEGR 102 Introduction to Engineering Modeling. Lab 05B Plotting
EGR 102 Introduction to Engineering Modeling Lab 05B Plotting 1 Overview Plotting in MATLAB 2D plotting ( ezplot(), fplot(), plot()) Formatting of 2D plots 3D plotting (surf(), mesh(), plot3()) Formatting
More informationExcel Spreadsheets and Graphs
Excel Spreadsheets and Graphs Spreadsheets are useful for making tables and graphs and for doing repeated calculations on a set of data. A blank spreadsheet consists of a number of cells (just blank spaces
More informationMatlab Introduction. Scalar Variables and Arithmetic Operators
Matlab Introduction Matlab is both a powerful computational environment and a programming language that easily handles matrix and complex arithmetic. It is a large software package that has many advanced
More informationOverview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab
Overview Lecture 13: Graphics and Visualisation Graphics & Visualisation 2D plotting 1. Plots for one or multiple sets of data, logarithmic scale plots 2. Axis control & Annotation 3. Other forms of 2D
More informationME 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 informationPR3 & PR4 CBR Activities Using EasyData for CBL/CBR Apps
Summer 2006 I2T2 Process Page 23. PR3 & PR4 CBR Activities Using EasyData for CBL/CBR Apps The TI Exploration Series for CBR or CBL/CBR books, are all written for the old CBL/CBR Application. Now we can
More informationIntroduction 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 informationMATH 2221A Mathematics Laboratory II
MATH A Mathematics Laboratory II Lab Assignment 4 Name: Student ID.: In this assignment, you are asked to run MATLAB demos to see MATLAB at work. The color version of this assignment can be found in your
More informationAn Introduction to MATLAB II
Lab of COMP 319 An Introduction to MATLAB II Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 2: 16th Sep, 2013 1 Outline of Lab 2 Review of Lab 1 Matrix in Matlab
More information12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.
Example 4 Printing and Plotting Matlab provides numerous print and plot options. This example illustrates the basics and provides enough detail that you can use it for typical classroom work and assignments.
More informationCDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation
CDA6530: Performance Models of Computers and Networks Chapter 4: Using Matlab for Performance Analysis and Simulation Objective Learn a useful tool for mathematical analysis and simulation Interpreted
More information