2D Plotting with Matlab
|
|
- Nathaniel Nelson
- 5 years ago
- Views:
Transcription
1 GEEN 1300 Introduction to Engineering Computing Class Meeting #22 Monday, Nov. 9 th Engineering Computing and Problem Solving with Matlab 2-D plotting with Matlab Script files User-defined functions Matlab s built-in solvers Section Test 2 graded, handed back in lab this week grade distribution and solution posted on CULearn Homework #8, VBA project assignment, due this Wednesday Homework #9, posted, due Wednesday, Nov. 18 th CULearn grades will be updated later this week 2D Plotting with Matlab Matlab creates figure windows for plots Plotting commands are in 3 categories: figure window management plot generation plot characteristics Figure window management figure(1) create figure window number 1 if a figure window does not exist, the plot command will create one automatically you create a new figure window to preserve the plots in any existing figure windows 1
2 Figure window management (cont d) break the figure into a 2-by-2 matrix of subplots and select the first subplot, counted by rows subplot(2,2,1) zoom zoom(2) hold on turn on mouseselected zoom zoom the current plot by a factor of 2 keep the existing curves and points on the current plot used for adding information to an existing plot Plot generation plot command used most of the time color codes line styles marker styles plot(1,2, gs ) plot a green square at coordinates x=1, y=2 plot([ ],[1.5 1], k: ) plot a straight line from coordinates (0.5,0.5) to (1.5,1), using a black dotted line style 2
3 Useful supporting functions axis( [ xmin xmax ymin ymax ] ) force the axis scaling to given ranges theta = linspace(0,2*pi,50) create a vector of 50 equally-spaced values from 0 to 2 (if you leave the 50 out, 100 is the default) nearly the same as: theta = 0 : 2*pi/50 : 2*pi freq = logspace(-2,2,100) create a vector of 100 values from 10-2 to 10 2 spaced equally according to the log 10 of the values Customizing plot characteristics grid turn on grid lines xlabel( x ) ylabel( y ) label the x axis label the y axis title( Ralphie V, 11/09/09 ) add a plot title text(2,1, YoBubba! ) add a text annotation at coordinates (2,1) axis equal force the x and y axis ranges to be equal 3
4 Plotting functions and families of functions Plotting data and model curves Form of curve suggests fitting a polynomial, perhaps cubic 4
5 Fitting the model curve 3 2 y x x x Adding the fitted curve to the plot User-defined functions same role as in Excel/VBA create using the Matlab Editor Example: a function to calculate the volume of liquid (V) in a spherical tank, given the depth of the liquid (h) and the radius (R) V R h How would the function be used? V = SphereTank(R,h) V 2 h 3R h 3 5
6 Use the Matlab Editor to create the function and save the function (in a convenient place like D:\) as SphereTank.m Then, use the function from the Matlab Command window We can also use algorithm structure ( if s and loops) in functions and m-scripts. This comes later. Script files like macros in Excel/VBA create a file with a.m extension using the Matlab Editor file contains a set of Matlab commands ( use to save time for oft-repeated commands ) run the M-file script by typing its name Example or Open the Matlab Editor for a new M-file 6
7 Type in the Matlab commands [ attention to the use of the ; to suppress output ] Save file ( in a convenient place, like D:\ ) as setupvdwair.m Use the m-script typing the M-file name typing the M file name causes the commands in the file to run 7
8 Matlab s built-in solvers solve what? not in this course roots of single nonlinear algebraic equations systems of linear algebraic equations systems of nonlinear algebraic equations maximum or minimum of a function optimize a function of several variables integration [ quadrature area under a curve ] ordinary differential equations (APPM 2460) partial differential equations (APPM 4660) to use (most of) these solvers, you have to write a Matlab function (using the Matlab Editor) that evaluates your equation(s) 15 Solving for the root of a nonlinear algebraic equation polynomial? use roots [been there, done that] 4 Good ole example: x f x e 2x 10 find a root of this equation near x = 1 initial estimate for x can also use fsolve 16 8
9 Solving a system of linear equations Ax b x 1 A b left divide in Matlab x = inv(a) * b or, better x = A \ b solution 17 Solving a system of nonlinear equations 2 2 x y 4 0 xy 10 Note: In the function, x(1) takes on the personality of x in the equations, and x(2) represents y. initial estimates for x and y 18 9
10 Maximum or minimum of a function in one variable Find a minimum of f x cos x cosh x 1 in the interval 0 x 5 fminbnd: find a minimum between defined bounds -- can also use fminsearch To find a maximum of g(x), set up to find minimum of g(x) Optimize a function of several variables 2 2 Find a maximum of y 54.36st 0.94s t 12.3s 8.9t in the intervals 0 s 10 and 0 t 10 initial estimates for s and min constraints on s and t Use help fmincon to find out about these arguments
11 5 Numerical integration [ quadrature ~ area under a curve ] 0 cos x cosh x 1 dx 25 f(x)=cos(x)*cosh(x) f(x) negative area x 21 Summary of Solving Functions/Techniques root of a single nonlinear algebraic equation roots of multiple nonlinear algebraic equations solving for the roots of a set of linear algebraic equations finding the minimum (or maximum) of a function in one variable finding the minimum (or maximum) of a function of several variables integrating a known function of a single variable (area under the curve) fzero fsolve left-divide fminbnd (also fminsearch) fmincon (Optimization) quadl (also quad) 11
Companion. Jeffrey E. Jones
MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.
More informationApplied Linear Algebra in Geoscience Using MATLAB
Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in
More informationMatlab Section. November 8, 2005
Matlab Section November 8, 2005 1 1 General commands Clear all variables from memory : clear all Close all figure windows : close all Save a variable in.mat format : save filename name of variable Load
More informationComputational Foundations of Cognitive Science
Computational Foundations of Cognitive Science Lecture 14: Inverses and Eigenvectors in Matlab; Plotting and Graphics Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February
More informationMath 148. Polynomial Graphs
Math 148 Lab 1 Polynomial Graphs Due: Monday Wednesday, April April 10 5 Directions: Work out each problem on a separate sheet of paper, and write your answers on the answer sheet provided. Submit the
More informationJanuary 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Part I: Basics MATLAB Environment Getting Help Variables Vectors, Matrices, and
More information(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB
Applied Linear Algebra in Geoscience Using MATLAB (Mathematical Operations with Arrays) Contents Getting Started Matrices Creating Arrays Linear equations Mathematical Operations with Arrays Using Script
More informationThe 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 informationGRAPHIC WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI
GRAPHIC SKEE1022 SCIENTIFIC PROGRAMMING WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI 1 OBJECTIVE 2-dimensional line plot function
More informationExcel for Scientists and Engineers Numerical Method s. E. Joseph Billo
Excel for Scientists and Engineers Numerical Method s E. Joseph Billo Detailed Table of Contents Preface Acknowledgments About the Author Chapter 1 Introducing Visual Basic for Applications 1 Chapter
More informationSolving Linear Systems of ODEs with Matlab
Solving Linear Systems of ODEs with Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University October 27, 2013 Outline Linear Systems Numerically
More information1.) Suppose the graph of f(x) looks like this (each tick mark denotes 1 unit). x y
College Algebra Summer 2014 Exam File Exam #1 1.) Suppose the graph of f(x) looks like this (each tick mark denotes 1 unit). Graph g(x) = -0.5 f(x + 1) - 3 2.) Consider the following table of values. x
More information1 Wyner PreCalculus Fall 2013
1 Wyner PreCalculus Fall 2013 CHAPTER ONE: FUNCTIONS AND THEIR GRAPHS Summary, Terms, and Objectives Most of calculus and precalculus is based on functions. A function is a process that takes one or more
More informationTemperature measurement
Luleå University of Technology Johan Carlson Last revision: July 22, 2009 Measurement Technology and Uncertainty Analysis - E7021E Lab 3 Temperature measurement Introduction In this lab you are given a
More informationA Glimpse at Scipy FOSSEE. June Abstract This document shows a glimpse of the features of Scipy that will be explored during this course.
A Glimpse at Scipy FOSSEE June 010 Abstract This document shows a glimpse of the features of Scipy that will be explored during this course. 1 Introduction SciPy is open-source software for mathematics,
More informationNumerical solution of ODEs
Péter Nagy, Csaba Hős 2015. H-1111, Budapest, Műegyetem rkp. 3. D building. 3 rd floor Tel: 00 36 1 463 16 80 Fax: 00 36 1 463 30 91 www.hds.bme.hu Table of contents Homework Introduction to Matlab programming
More informationStatistical methods. Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra
Statistical methods Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra Statistical methods Generating random numbers MATLAB has many built-in functions
More informationAP Calculus AB Summer Assignment. Due Date: First day of school.
AP Calculus AB Summer Assignment Name: Due Date: First day of school. The purpose of this assignment is to have you practice the mathematical skills necessary to be successful in Calculus AB. All of the
More informationPhysics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals
Physics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals Announcements HW4 grades are up. HW5a HW5 revised Same problems, now
More informationLAB 1: MATLAB - Introduction to Programming. Objective:
LAB 1: MATLAB - Introduction to Programming Objective: The objective of this laboratory is to review how to use MATLAB as a programming tool and to review a classic analytical solution to a steady-state
More informationUsing Matlab for Laboratory Data Reduction
Data Collected Using Matlab for Laboratory Data Reduction Munson, Young, and Okiishi [1] provide laboratory data for the measurement of the viscosity of water with a capillary tube viscometer. The viscometer
More information(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB
Applied Linear Algebra in Geoscience Using MATLAB (Linear equations) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots
More informationNumerical Analysis Fall. Roots: Open Methods
Numerical Analysis 2015 Fall Roots: Open Methods Open Methods Open methods differ from bracketing methods, in that they require only a single starting value or two starting values that do not necessarily
More informationMath 343 Lab 7: Line and Curve Fitting
Objective Math 343 Lab 7: Line and Curve Fitting In this lab, we explore another use of linear algebra in statistics. Specifically, we discuss the notion of least squares as a way to fit lines and curves
More informationCS 221 Lecture 9. Tuesday, 1 November 2011
CS 221 Lecture 9 Tuesday, 1 November 2011 Some slides in this lecture are from the publisher s slides for Engineering Computation: An Introduction Using MATLAB and Excel 2009 McGraw-Hill Today s Agenda
More informationProject 2: Using linear systems for numerical solution of boundary value problems
LINEAR ALGEBRA, MATH 124 Instructor: Dr. T.I. Lakoba Project 2: Using linear systems for numerical solution of boundary value problems Goal Introduce one of the most important applications of Linear Algebra
More informationLab 13: Ordinary Differential Equations
EGR 53L - Fall 2009 Lab 13: Ordinary Differential Equations 13.1 Introduction This lab is aimed at introducing techniques for solving initial-value problems involving ordinary differential equations using
More informationNumerical Methods School of Mechanical Engineering Chung-Ang University
Part 2 Chapter 7 Optimization Prof. Hae-Jin Choi hjchoi@cau.ac.kr 1 Chapter Objectives l Understanding why and where optimization occurs in engineering and scientific problem solving. l Recognizing the
More information1 Introduction & Objective
Signal Processing First Lab 13: Numerical Evaluation of Fourier Series Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in
More informationBayesian Analysis - A First Example
Bayesian Analysis - A First Example This script works through the example in Hoff (29), section 1.2.1 We are interested in a single parameter: θ, the fraction of individuals in a city population with with
More informationNumerical Integration of Functions
Numerical Integration of Functions Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University Reference: 1. Applied Numerical Methods with MATLAB for Engineers,
More informationHOMEWORK 3: Phase portraits for Mathmatical Models, Analysis and Simulation, Fall 2010 Report due Mon Oct 4, Maximum score 7.0 pts.
HOMEWORK 3: Phase portraits for Mathmatical Models, Analysis and Simulation, Fall 2010 Report due Mon Oct 4, 2010. Maximum score 7.0 pts. Three problems are to be solved in this homework assignment. The
More informationLecture 5b: Starting Matlab
Lecture 5b: Starting Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University August 7, 2013 Outline 1 Resources 2 Starting Matlab 3 Homework
More informationSpis treści Contents List of Examples Preface to Third Edition 21
An engineer's guide to MATLAB : with applications from mechanical, aerospace, electrical, civil, and biological systems engineering / Edward B. Magrab [et al.]. - 3rd ed. - Boston, cop. 2011 Spis treści
More informationNew Mexico Tech Hyd 510
Vectors vector - has magnitude and direction (e.g. velocity, specific discharge, hydraulic gradient) scalar - has magnitude only (e.g. porosity, specific yield, storage coefficient) unit vector - a unit
More informationComplex Numbers. A complex number z = x + iy can be written in polar coordinates as re i where
Lab 20 Complex Numbers Lab Objective: Create visualizations of complex functions. Visually estimate their zeros and poles, and gain intuition about their behavior in the complex plane. Representations
More informationPractice Problems. 1. The age and weights of six cats are given in the following table:
1. The age and weights of six cats are given in the following table: Age (in years) A Weight (in pounds) - W 3 2 5 4 17 15 7 10 12 10 1 1 a. Identify the input and output quantities and their associated
More informationPhysics 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 informationGraded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo
2008-11-07 Graded Project #1 Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo This homework is due to be handed in on Wednesday 12 November 2008 before 13:00 in the post box of the numerical
More informationExperiment 1: Linear Regression
Experiment 1: Linear Regression August 27, 2018 1 Description This first exercise will give you practice with linear regression. These exercises have been extensively tested with Matlab, but they should
More informationNUMERICAL 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 informationL3: Review of linear algebra and MATLAB
L3: Review of linear algebra and MATLAB Vector and matrix notation Vectors Matrices Vector spaces Linear transformations Eigenvalues and eigenvectors MATLAB primer CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna
More informationENGR Spring Exam 2
ENGR 1300 Spring 013 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. Read carefully..
More information2 Solving Ordinary Differential Equations Using MATLAB
Penn State Erie, The Behrend College School of Engineering E E 383 Signals and Control Lab Spring 2008 Lab 3 System Responses January 31, 2008 Due: February 7, 2008 Number of Lab Periods: 1 1 Objective
More informationS(c)/ c = 2 J T r = 2v, (2)
M. Balda LMFnlsq Nonlinear least squares 2008-01-11 Let us have a measured values (column vector) y depent on operational variables x. We try to make a regression of y(x) by some function f(x, c), where
More informationAssignment 6, Math 575A
Assignment 6, Math 575A Part I Matlab Section: MATLAB has special functions to deal with polynomials. Using these commands is usually recommended, since they make the code easier to write and understand
More informationSolutions to MAT 117 Test #3
Solutions to MAT 7 Test #3 Because there are two versions of the test, solutions will only be given for Form C. Differences from the Form D version will be given. (The values for Form C appear above those
More informationIntroduction to GNU Octave
Introduction to GNU Octave A brief tutorial for linear algebra and calculus students by Jason Lachniet Introduction to GNU Octave A brief tutorial for linear algebra and calculus students Jason Lachniet
More informationComplex Numbers. Visualize complex functions to estimate their zeros and poles.
Lab 1 Complex Numbers Lab Objective: Visualize complex functions to estimate their zeros and poles. Polar Representation of Complex Numbers Any complex number z = x + iy can be written in polar coordinates
More informationCISE 302 Linear Control Systems Laboratory Manual
King Fahd University of Petroleum & Minerals CISE 302 Linear Control Systems Laboratory Manual Systems Engineering Department Revised - September 2012 2 Lab Experiment 1: Using MATLAB for Control Systems
More informationMotivation: Sparse matrices and numerical PDE's
Lecture 20: Numerical Linear Algebra #4 Iterative methods and Eigenproblems Outline 1) Motivation: beyond LU for Ax=b A little PDE's and sparse matrices A) Temperature Equation B) Poisson Equation 2) Splitting
More informationUsing a graphic display calculator
12 Using a graphic display calculator CHAPTER OBJECTIVES: This chapter shows you how to use your graphic display calculator (GDC) to solve the different types of problems that you will meet in your course.
More informationGetting to the Core. A9 Functions Unit of Study. Algebra II. Updated on May 3, Student Name Period
Getting to the Core Algebra II A9 Functions Unit of Study Updated on May 3, 03 Student Name Period This page was intentionally left blank. Unit A9 Functions Table of Contents Lessons Description Page Title
More informationSECTION 7: CURVE FITTING. MAE 4020/5020 Numerical Methods with MATLAB
SECTION 7: CURVE FITTING MAE 4020/5020 Numerical Methods with MATLAB 2 Introduction Curve Fitting 3 Often have data,, that is a function of some independent variable,, but the underlying relationship is
More informationMATLAB 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 informationJMBC Computational Fluid Dynamics I Exercises by A.E.P. Veldman
JMBC Computational Fluid Dynamics I Exercises by A.E.P. Veldman The exercises will be carried out on PC s in the practicum rooms. Several (Matlab and Fortran) files are required. How these can be obtained
More informationA repeated root is a root that occurs more than once in a polynomial function.
Unit 2A, Lesson 3.3 Finding Zeros Synthetic division, along with your knowledge of end behavior and turning points, can be used to identify the x-intercepts of a polynomial function. This information allows
More informationNote: The command name is upper case in the description given by help, but must be lower case in actual use. And the backslash Anb is dierent when A i
MATLAB Tutorial You need a small number of basic commands to start using MATLAB. This short tutorial describes those fundamental commands. You need to create vectors and matrices, to change them, and to
More informationCustomizing pgstar for your models
MESA Summer School 10Aug2015 Customizing pgstar for your models Monique Windju / Frank Timmes/ Emily Leiner SI 2 SPIDER Color coded notation used throughout this lecture + lab: Things you do are in yellow,
More informationMAT 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 informationDifferential Lengths, Surfaces and Volumes
Differential Lengths, Surfaces and Volumes When integrating along lines, over surfaces, or throughout volumes, the ranges of the respective variables define the limits of the respective integrations. In
More informationLesson 5 Practice Problems
Name: Date: Lesson 5 Section 5.1: Linear Functions vs. Exponential Functions 1. Complete the table below. Function Linear or Exponential? Linear: Increasing or Decreasing? Exponential: Growth or Decay?
More informationEEE161 Applied Electromagnetics Laboratory 1
Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 1 Instructor: Dr. Milica Marković Office: Riverside Hall 3028 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/
More informationPART 1 - CALCULATOR ACTIVE QUESTIONS
Name: Date : IM 3 UNIT TEST Linear Functions Teacher: Mr. Santowski and Mr. Smith Score: PART 1 - CALCULATOR ACTIVE QUESTIONS SHOW ALL WORK AND WRITE ALL ANSWERS IN THE SPACES PROVIDED. Maximum marks will
More informationLab 2: Static Response, Cantilevered Beam
Contents 1 Lab 2: Static Response, Cantilevered Beam 3 1.1 Objectives.......................................... 3 1.2 Scalars, Vectors and Matrices (Allen Downey)...................... 3 1.2.1 Attribution.....................................
More information1. Open polymath: 2. Go to Help, Contents F1 or Press F1
Polymath Tutorial Process Fluid Transport 1. Open polymath: 2. Go to Help, Contents F1 or Press F1 1 3. Read the section titled Introduction to Polymath both getting started and Variables and expressions
More informationAn (incomplete) Introduction to FreeFem++
An (incomplete) Introduction to FreeFem++ Nathaniel Mays Wheeling Jesuit University November 12, 2011 Nathaniel Mays (Wheeling Jesuit University)An (incomplete) Introduction to FreeFem++ November 12, 2011
More informationH(t) = 16t Sketch a diagram illustrating the Willis Tower and the path of the baseball as it falls to the ground.
Name Period Date Introduction to Quadratic Functions Activity 2 Imagine yourself standing on the roof of the 1450-foot-high Willis Tower (formerly called the Sears Tower) in Chicago. When you release and
More informationCentre for Mathematical Sciences HT 2017 Mathematical Statistics. Study chapters 6.1, 6.2 and in the course book.
Lund University Stationary stochastic processes Centre for Mathematical Sciences HT 2017 Mathematical Statistics Computer exercise 2 in Stationary stochastic processes, HT 17. The purpose with this computer
More informationUsing Matlab to integrate Ordinary Differential Equations (ODEs)
Using Matlab to integrate Ordinary Differential Equations (ODEs) Erica McEvoy (Dated: June 17, 2009) 1. INTRODUCTION Ordinary differential equations tend to arise whenever you need to model changing quantities
More informationExample Example Example Example
7. More Practice with Iteration and Conditionals Through Graphics We will Draw Pictures Using Three User-Defined* Graphics Functions For-Loop Problems Introduce While-Loops DrawRect DrawDisk DrawStar Rectangles
More informationHomework 1 Solutions
18-9 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 18 Homework 1 Solutions Part One 1. (8 points) Consider the DT signal given by the algorithm: x[] = 1 x[1] = x[n] = x[n 1] x[n ] (a) Plot
More informationNumerical Integration and Numerical Differentiation. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan
Numerical Integration and Numerical Differentiation Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan chanhl@mail.cgu.edu.tw Integration 2 Mean for discrete and continuous data
More informationINTRODUCTION TO CHEMICAL ENGINEERING COMPUTING
INTRODUCTION TO CHEMICAL ENGINEERING COMPUTING BRUCE A. FINLÄYSON, PH.D. University of Washington Seattle, Washington iwiley- INTERSCIENCE A JOHN WILEY & SONS, INC., PUBLICATION Microsoft product screen
More informationProblem Set 5: Iterative methods with generalized least squares
Problem Set 5: Iterative methods with generalized least squares GEOS 627: Inverse Problems and Parameter Estimation, Carl Tape Assigned: February 20, 2017 Due: March 6, 2017 Last compiled: July 7, 2017
More information. var save filename var. y fprintf(fl,'%f %f\n',y) y ..TXT. . fprintf() .TXT. myf = fopen('nam.txt','w'); nam.txt myf.
y fprintf(fl,'%f %f\n',y) y. \n.txt. fprintf()..txt.. myf = fopen('nam.txt','w'); :. (1-4 )..TXT. % Optt.m av =[17.4537 4.57 15.3 17.869 3.7]; Tit = 'Students Average:'; myf = fopen('nam.txt','w'); fprintf(myf,'%s\n',tit);
More informationTutorial. Getting started. Sample to Insight. March 31, 2016
Getting started March 31, 2016 Sample to Insight CLC bio, a QIAGEN Company Silkeborgvej 2 Prismet 8000 Aarhus C Denmark Telephone: +45 70 22 32 44 www.clcbio.com support-clcbio@qiagen.com Getting started
More informationECE 102 Engineering Computation
ECE 102 Engineering Computation Phillip Wong MATLAB XY Plots with Linear-Linear Scaling Formatting Plots XY Plots with Logarithmic Scaling Multiple Plots Printing and Saving Plots Introduction to 2D Graphs
More informationLesson 4 Linear Functions and Applications
In this lesson, we take a close look at Linear Functions and how real world situations can be modeled using Linear Functions. We study the relationship between Average Rate of Change and Slope and how
More informationDIGITAL SIGNAL PROCESSING LABORATORY
L AB 5 : DISCRETE T IME SYSTEM IN TIM E DOMAIN NAME: DATE OF EXPERIMENT: DATE REPORT SUBMITTED: 1 1 THEORY Mathematically, a discrete-time system is described as an operator T[.] that takes a sequence
More informationSystem Control Engineering 0
System Control Engineering 0 Koichi Hashimoto Graduate School of Information Sciences Text: Nonlinear Control Systems Analysis and Design, Wiley Author: Horacio J. Marquez Web: http://www.ic.is.tohoku.ac.jp/~koichi/system_control/
More informationMath 253 Homework due Wednesday, March 9 SOLUTIONS
Math 53 Homework due Wednesday, March 9 SOLUTIONS 1. Do Section 8.8, problems 11,, 15, 17 (these problems have to do with Taylor s Inequality, and they are very similar to what we did on the last homework.
More informationFunction Junction: Homework Examples from ACE
Function Junction: Homework Examples from ACE Investigation 1: The Families of Functions, ACE #5, #10 Investigation 2: Arithmetic and Geometric Sequences, ACE #4, #17 Investigation 3: Transforming Graphs,
More informationINTRODUCTION, FOUNDATIONS
1 INTRODUCTION, FOUNDATIONS ELM1222 Numerical Analysis Some of the contents are adopted from Laurene V. Fausett, Applied Numerical Analysis using MATLAB. Prentice Hall Inc., 1999 2 Today s lecture Information
More informationAt right: Closeups of the graphs of. with WINDOW settings Xmin=-1, Xmax=1, Xscl=0.1, Ymin=-1, Ymax=1, Yscl=0.1
Know the graphs of f(x) = x n for n = odd, positive: 1, 3, 5, The Domain is All Real Numbers, (, ), or R. The Range is All Real Numbers, (, ), or R. It is an Odd function because f( x) = f(x). It is symmetric
More informationHomework Assignment 3
ECE382/ME482 Fall 2008 Homework 3 Solution October 20, 2008 1 Homework Assignment 3 Assigned September 30, 2008. Due in lecture October 7, 2008. Note that you must include all of your work to obtain full
More informationAppendix 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 informationExample 1 (Characteristic Equation, Eigenvalue, and Eigenvector)
Matlab Lab 3 Example 1 (Characteristic Equation, Eigenvalue, and Eigenvector) A polynomial equation is uniquely determined by the coefficients of the monomial terms. For example, the quadratic equation
More informationReview: complex numbers
October 5/6, 01.5 extra problems page 1 Review: complex numbers Number system The complex number system consists of a + bi where a and b are real numbers, with various arithmetic operations. The real numbers
More informationMATLAB crash course 1 / 27. MATLAB crash course. Cesar E. Tamayo Economics - Rutgers. September 27th, /27
1/27 MATLAB crash course 1 / 27 MATLAB crash course Cesar E. Tamayo Economics - Rutgers September 27th, 2013 2/27 MATLAB crash course 2 / 27 Program Program I Interface: layout, menus, help, etc.. I Vectors
More informationLesson 1 Practice Problems
Name: Date: Section 1.1: What is a Function? Lesson 1 1. The table below gives the distance D, in kilometers, of a GPS satellite from Earth t minutes after being launched. t = Time (in minutes) D = Distance
More informationObjectives. Materials
. Objectives Activity 6 To investigate the relationship between mass and volume To find the x value of a function, given the y value To find the y value of a function, given the x value To use technology
More information( ) ( ) SECTION 1.1, Page ( x 3) 5 = 4( x 5) = 7. x = = = x x+ 0.12(4000 x) = 432
CHAPTER Functions and Graphs SECTION., Page. x + x + x x x. x + x x x x x. ( x ) ( x ) x 6 x x x x x + x x 7. x + x + x + 6 8 x 8 6 x x. x x 6 x 6 x x x 8 x x 8 + x..x +..6.x. x 6 ( n + ) ( n ) n + n.
More informationSection 4.4 Z-Scores and the Empirical Rule
Section 4.4 Z-Scores and the Empirical Rule 1 GPA Example A sample of GPAs of 40 freshman college students appear below (sorted in increasing order) 1.40 1.90 1.90 2.00 2.10 2.10 2.20 2.30 2.30 2.40 2.50
More informationTotal=75 min. Materials BLM cut into cards BLM
Unit 2: Day 4: All together now! Math Learning Goals: Minds On: 15 Identify functions as polynomial functions. Consolidate understanding of properties of functions that include: linear, Action: 50 quadratic,
More informationMatlab Instruction Primer; Chem 691, Spring 2016
1 Matlab Instruction Primer; Chem 691, Spring 2016 This version dated February 10, 2017 CONTENTS I. Help: To obtain information about any instruction in Matlab 1 II. Scripting 1 III. Loops, determine an
More informationPower Factor Correction
Engr228 Lab #7 Power Factor Correction Name Partner(s) Grade /10 Note to lab instructor: Refer to the picture taken of the hardware setup. Make sure the little switch on the motor is in the up position
More informationAPPM 2360 Project 1: Black Holes
APPM 2360 Project 1: Black Holes Due: February 22, 2018 by 11:59 PM on D2L 1 Introduction Black holes are one of the stranger predictions of Einsteins beautiful theory of general relativity. When matter
More informationMATH 350: Introduction to Computational Mathematics
MATH 350: Introduction to Computational Mathematics Chapter IV: Locating Roots of Equations Greg Fasshauer Department of Applied Mathematics Illinois Institute of Technology Spring 2011 fasshauer@iit.edu
More information3. ANALYTICAL KINEMATICS
In planar mechanisms, kinematic analysis can be performed either analytically or graphically In this course we first discuss analytical kinematic analysis nalytical kinematics is based on projecting the
More information