Physics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals

Size: px
Start display at page:

Download "Physics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals"

Transcription

1 Physics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals

2 Announcements HW4 grades are up. HW5a HW5 revised Same problems, now due Monday 9/30 Also I added two more problem (#3 and #9) due Wednesday. Exam is still next Wednesday Sample Exam (last year's is posted now)

3 Saving figures as images There are two ways to share data-plots (other than printing them). 1) Make a.fig file. A.fig file contains both the plot and the data used to make the plot. The advantage of it is that it can be edited and customized further by you or the recipient. The disadvantage is that they cannot see the file without loading Matlab, and the fact that it CAN be changed makes it not good for archives and publications. 2) Make a.jpeg, bmp, png, eps (an image). Method 2 is what I am requesting in this course. (That is please don't submit.fig files) >> print(1,'dpng') >> print(3,'deps') >> print(1,'-djpeg','homework2_2.jpeg') >> print(1,'-dbmp','-r300','homework2_2.bmp')

4 Advanced Plotting %a _zvstfancy.m -- Loads and plots a balloon trajectory. %Demonstrates changing fonts. %("listfonts" command gives you font options) a=load('bflight1_ _mod.pos'); time=a(:,4); alt=a(:,3); %Get 3rd and 4th columns plot(time,alt,'r.',time,alt,'b-','markersize',22,'linewidth',2); %Plot alt with red dots and also with a blue line %Make the dots and line bigger than default xlabel('time (s)','fontname','times','fontsize',18); ylabel('altitude (m)','fontname','times','fontsize',18); %Label the axes with nice readable fonts. title('telemetry test flight','fontname','times','fontsize',22); text(400,1700,'july 25, 2003','FontSize',16) %Add explanatory text a=gca; set(a,'fontname','arial','fontsize',16) %Change the text size of the tick marks

5 Handle graphics >> f=gcf %Gets handle for current figure >> get(f) %Gets properties of current figure >> a=gca %Gets handle for current axes >> get(a) %Gets properties of current axes >> get(a,'xtick') >> set(a,'xtick',[ ]) %Sets tick marks to [ ] Can set any property that you have gotten. >> set(a,'xlim',[ ]); >> set(a,'xlim',[ inf inf]); set(a,'xaxislocation','top');

6 Handle graphics >> a=gca a= >> get(a) ColorOrder = [ (7 by 3) double array] FontAngle = normal FontName = Helvetica FontSize = [10] FontUnits = points FontWeight = normal GridLineStyle = : LineStyleOrder = LineWidth = [0.5] TickLength = [ ] TickDir = in Title = [ ] XGrid = off XLabel = [ ] XAxisLocation = bottom XLim = [ ] XTickLabel = Parent = [1] >> b=get(a,'xlabel') b= >> get(b) BackgroundColor = none Color = [0 0 0] Extent = [ (1 by 4) double array] FontAngle = normal FontName = Helvetica FontSize = [10] FontUnits = points FontWeight = normal HorizontalAlignment = center Position = [ ] Rotation = [0] Units = data Interpreter = tex VerticalAlignment = cap Parent = [ ] Visible = on

7 Handle graphics >> xlab=get(a,'xlabel') % Gets Xlabel properties on current figure Xlabel is child of current axes which are child of current figure. Figure is parent of axes. Can get a handle to things like legends to customize them h=legend('first legend','second legend') set(h,'fontsize',14)

8 Numerical derivative forward derivative Math Matlab element by element lim f t t f t f ' t = t 0 t len=length(f);d=zeros(1,len); for k=1:len-1 D(k)=(f(k+1)-f(k))/deltat; deltat=t(k+1)-t(k); end Assuming that f and t are the same length, the above code is bug-free Advantages: Can use for first point of data set. Disadvantage: Can't use for real-time data.

9 Numerical derivative backward derivative Math Matlab element by element Array oriented f t f t t f ' t = lim t t 0 deltay=y(k)-y(k-1) deltat=t(k)-t(k-1) yprime(k)=deltay/deltat deltay=diff(y) deltat=diff(t) Advantages: Can use for last point of data set, there is no next point. Also, for real-time data when you don't know the future.

10 Numerical derivatives central derivative Math Matlab f t t f t t f ' t = lim 2 t t 0 deltay=y(k+1)-y(k-1) deltat=t(k+1)-t(k-1) yprime(k)=deltay/deltat Advantages: Less noisy than other formulae. Symmetrical

11

12 Forward derivative Central derivative

13 Errors in Numerical derivatives Taylor Series 2 3 t t f t t =f t f ' t t f ' ' t f ' ' ' t... 2! 3! 2 f t t f t t t f ' t = f ' ' t f ' ' ' t... t 2! 3! Note: Error decreases at step-size decreases

14 Script Examples Derivative example. Calculate a derivative and print it in a pretty way. Then Break into function and calling script Then demonstrate subplot

15 Left Riemann Sum Left Riemann sum. Overestimates decreasing functions.

16

17 Numerical Integrals t1 Math I(t 1 )= f (t)dt 0 t=t 1 Matlab I t 1 = lim f t t t 0 t=0 I(1)=y(0); deltat=t(k)-t(k-1) I(k)=I(k-1)+y(k)*deltat Left Riemann sum. Overestimates decreasing functions.

18 Numerical Integrals t1 Math I(t 1 )= f (t)dt 0 t=t 1 Matlab I t 1 = lim f t t t 0 t=0 I(1)=y(0); deltat=t(k+1)-t(k) I(k)=I(k-1)+y(k+1)*deltat Right Riemann sum. Underestimates decreasing functions.

Introduction to MatLab

Introduction to MatLab Introduction to MatLab 1 Introduction to MatLab Graduiertenkolleg Kognitive Neurobiologie Friday, 05 November 2004 Thuseday, 09 Novemer 2004 Kurt Bräuer Institut für Theoretische Physik, Universität Tübingen

More information

An Introduction to MatLab

An Introduction to MatLab Introduction to MatLab 1 An Introduction to MatLab Contents 1. Starting MatLab... 3 2. Workspace and m-files... 4 3. Help... 5 4. Vectors and Matrices... 5 5. Objects... 8 6. Plots... 10 7. Statistics...

More information

2D Plotting with Matlab

2D Plotting with Matlab 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

More information

ECE 102 Engineering Computation

ECE 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 information

Lecture 5b: Starting Matlab

Lecture 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 information

Math 515 Fall, 2008 Homework 2, due Friday, September 26.

Math 515 Fall, 2008 Homework 2, due Friday, September 26. Math 515 Fall, 2008 Homework 2, due Friday, September 26 In this assignment you will write efficient MATLAB codes to solve least squares problems involving block structured matrices known as Kronecker

More information

Project One: C Bump functions

Project One: C Bump functions Project One: C Bump functions James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 2, 2018 Outline 1 2 The Project Let s recall what the

More information

New Mexico Tech Hyd 510

New 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 information

Project 2: Using linear systems for numerical solution of boundary value problems

Project 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 information

An Introduction to Matlab

An Introduction to Matlab An Introduction to Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University August 25, 2013 Outline Starting Matlab Matlab Vectors and Functions

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

Fin System, Inc. Company Report. Temperature Profile Calculators. Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D.

Fin System, Inc. Company Report. Temperature Profile Calculators. Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D. Fin System, Inc. Company Report Temperature Profile Calculators Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D. Daily, Programmer Submitted in Fulfillment of Management Requirements August

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

Lecture 5. September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico

Lecture 5. September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico Lecture 5 September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico 1 Review: Office hours at regularly scheduled times this week Tuesday: 9:30am-11am Wed: 2:30pm-4:00pm

More information

S(c)/ c = 2 J T r = 2v, (2)

S(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 information

www.goldensoftware.com Why Create a Thematic Map? A thematic map visually represents the geographic distribution of data. MapViewer will help you to: understand demographics define sales or insurance territories

More information

ENED 1091 HW#3 Due Week of February 22 nd

ENED 1091 HW#3 Due Week of February 22 nd ENED 1091 HW#3 Due Week of February 22 nd Problem 1: The graph below shows position measurements (in cm) collected every 0.5 seconds over a 10 second interval of time. (a) Using linear interpolation, estimate

More information

GRAPHIC WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI

GRAPHIC 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 information

LAB 1: MATLAB - Introduction to Programming. Objective:

LAB 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 information

MA 580; Numerical Analysis I

MA 580; Numerical Analysis I MA 580; Numerical Analysis I C. T. Kelley NC State University tim kelley@ncsu.edu Version of October 23, 2016 NCSU, Fall 2016 c C. T. Kelley, I. C. F. Ipsen, 2016 MA 580, Fall 2016 1 / 43 Contents 1 Introduction

More information

How to Make or Plot a Graph or Chart in Excel

How to Make or Plot a Graph or Chart in Excel This is a complete video tutorial on How to Make or Plot a Graph or Chart in Excel. To make complex chart like Gantt Chart, you have know the basic principles of making a chart. Though I have used Excel

More information

Bayesian Analysis - A First Example

Bayesian 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 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

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

January 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

Tu: 9/3/13 Math 471, Fall 2013, Section 001 Lecture 1

Tu: 9/3/13 Math 471, Fall 2013, Section 001 Lecture 1 Tu: 9/3/13 Math 71, Fall 2013, Section 001 Lecture 1 1 Course intro Notes : Take attendance. Instructor introduction. Handout : Course description. Note the exam days (and don t be absent). Bookmark the

More information

METHOD OF MOMENTS SOLUTION FOR CHARGED LINE AND PLATE IMMERSED IN A DIELECTRIC

METHOD OF MOMENTS SOLUTION FOR CHARGED LINE AND PLATE IMMERSED IN A DIELECTRIC ECE 618 - Project 3 METHOD OF MOMENTS SOLUTION FOR CHARGED LINE AND PLATE IMMERSED IN A DIELECTRIC May 7, 2014 Andrew H. Velzen Purdue University Professor Dan Jiao 1 Problem Statement The two problems

More information

How many states. Record high temperature

How many states. Record high temperature Record high temperature How many states Class Midpoint Label 94.5 99.5 94.5-99.5 0 97 99.5 104.5 99.5-104.5 2 102 102 104.5 109.5 104.5-109.5 8 107 107 109.5 114.5 109.5-114.5 18 112 112 114.5 119.5 114.5-119.5

More information

Assignment A02: Geometry Definition: File Formats, Redundant Coordinates, PES Scans

Assignment A02: Geometry Definition: File Formats, Redundant Coordinates, PES Scans Assignment A02: Geometry Definition: File Formats, Redundant Coordinates, PES Scans In Assignments A00 and A01, you familiarized yourself with GaussView and G09W, you learned the basics about input (GJF)

More information

Run bayesian parameter estimation

Run bayesian parameter estimation Matlab: R11a IRIS: 8.11519 Run bayesian parameter estimation [estimate_params.m] by Jaromir Benes May 11 Introduction In this m-le, we use bayesian methods to estimate some of the parameters. First, we

More information

Riemann Integration. James K. Peterson. February 2, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Riemann Integration. James K. Peterson. February 2, Department of Biological Sciences and Department of Mathematical Sciences Clemson University Riemann Integration James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University February 2, 2017 Outline 1 Riemann Sums 2 Riemann Sums In MatLab 3 Graphing

More information

L3: Review of linear algebra and MATLAB

L3: 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 information

Temperature measurement

Temperature 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 information

Riemann Integration. Outline. James K. Peterson. February 2, Riemann Sums. Riemann Sums In MatLab. Graphing Riemann Sums

Riemann Integration. Outline. James K. Peterson. February 2, Riemann Sums. Riemann Sums In MatLab. Graphing Riemann Sums Riemann Integration James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University February 2, 2017 Outline Riemann Sums Riemann Sums In MatLab Graphing

More information

DIGITAL SIGNAL PROCESSING LABORATORY

DIGITAL 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 information

to have roots with negative real parts, the necessary and sufficient conditions are that:

to have roots with negative real parts, the necessary and sufficient conditions are that: THE UNIVERSITY OF TEXAS AT SAN ANTONIO EE 543 LINEAR SYSTEMS AND CONTROL H O M E W O R K # 7 Sebastian A. Nugroho November 6, 7 Due date of the homework is: Sunday, November 6th @ :59pm.. The following

More information

CZECHOSLOVAK JOURNAL OF PHYSICS. Instructions for authors

CZECHOSLOVAK JOURNAL OF PHYSICS. Instructions for authors CZECHOSLOVAK JOURNAL OF PHYSICS Instructions for authors The Czechoslovak Journal of Physics is published monthly. It comprises original contributions, both regular papers and letters, as well as review

More information

1 Introduction. Multimedia, Vision and Graphics Laboratory

1 Introduction. Multimedia, Vision and Graphics Laboratory Multimedia, Vision and Graphics Laboratory Rumelifeneri Yolu, Sarıyer, 34450, İstanbul / Turkey date: September 3, 2017 to: Engin Erzin from: M. A. Tuğtekin Turan subject: On the Use of MVGL Report Template

More information

PHYS 114 Exam 1 Answer Key NAME:

PHYS 114 Exam 1 Answer Key NAME: PHYS 4 Exam Answer Key AME: Please answer all of the questions below. Each part of each question is worth points, except question 5, which is worth 0 points.. Explain what the following MatLAB commands

More information

MATLAB crash course 1 / 27. MATLAB crash course. Cesar E. Tamayo Economics - Rutgers. September 27th, /27

MATLAB 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 information

Integration by Parts Logarithms and More Riemann Sums!

Integration by Parts Logarithms and More Riemann Sums! Integration by Parts Logarithms and More Riemann Sums! James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University September 16, 2013 Outline 1 IbyP with

More information

Assignment 1b: due Tues Nov 3rd at 11:59pm

Assignment 1b: due Tues Nov 3rd at 11:59pm n Today s Lecture: n n Vectorized computation Introduction to graphics n Announcements:. n Assignment 1b: due Tues Nov 3rd at 11:59pm 1 Monte Carlo Approximation of π Throw N darts L L/2 Sq. area = N =

More information

MATH 2300 review problems for Exam 1 ANSWERS

MATH 2300 review problems for Exam 1 ANSWERS MATH review problems for Exam ANSWERS. Evaluate the integral sin x cos x dx in each of the following ways: This one is self-explanatory; we leave it to you. (a) Integrate by parts, with u = sin x and dv

More information

Map image from the Atlas of Oregon (2nd. Ed.), Copyright 2001 University of Oregon Press

Map image from the Atlas of Oregon (2nd. Ed.), Copyright 2001 University of Oregon Press Map Layout and Cartographic Design with ArcGIS Desktop Matthew Baker ESRI Educational Services Redlands, CA Education UC 2008 1 Seminar overview General map design principles Working with map elements

More information

Appendix B Microsoft Office Specialist exam objectives maps

Appendix B Microsoft Office Specialist exam objectives maps B 1 Appendix B Microsoft Office Specialist exam objectives maps This appendix covers these additional topics: A Excel 2003 Specialist exam objectives with references to corresponding material in Course

More information

ENGR Spring Exam 2

ENGR 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 information

Riemann Sums. Outline. James K. Peterson. September 15, Riemann Sums. Riemann Sums In MatLab

Riemann Sums. Outline. James K. Peterson. September 15, Riemann Sums. Riemann Sums In MatLab Riemann Sums James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University September 15, 2013 Outline Riemann Sums Riemann Sums In MatLab Abstract This

More information

CSCE 155N Fall Homework Assignment 2: Stress-Strain Curve. Assigned: September 11, 2012 Due: October 02, 2012

CSCE 155N Fall Homework Assignment 2: Stress-Strain Curve. Assigned: September 11, 2012 Due: October 02, 2012 CSCE 155N Fall 2012 Homework Assignment 2: Stress-Strain Curve Assigned: September 11, 2012 Due: October 02, 2012 Note: This assignment is to be completed individually - collaboration is strictly prohibited.

More information

Simulink Tutorial 1 CPE562

Simulink Tutorial 1 CPE562 Simulink Tutorial 1 CPE562 Week 1 Introduction to Simulink Familiarization with Simulink blocks Sources: Constants Sinks: Display Operations: Sum, Product, Add, Divide. Mathematical operations involving

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

GTECH 380/722 Analytical and Computer Cartography Hunter College, CUNY Department of Geography

GTECH 380/722 Analytical and Computer Cartography Hunter College, CUNY Department of Geography GTECH 380/722 Analytical and Computer Cartography Hunter College, CUNY Department of Geography Fall 2014 Mondays 5:35PM to 9:15PM Instructor: Doug Williamson, PhD Email: Douglas.Williamson@hunter.cuny.edu

More information

Riemann Integration Theory

Riemann Integration Theory Riemann Integration Theory James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University February 3, 2017 Outline 1 Uniform Partition Riemann Sums 2 Refinements

More information

Matlab Section. November 8, 2005

Matlab 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 information

EEE161 Applied Electromagnetics Laboratory 1

EEE161 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 information

HIRES 2017 Syllabus. Instructors:

HIRES 2017 Syllabus. Instructors: HIRES 2017 Syllabus Instructors: Dr. Brian Vant-Hull: Steinman 185, 212-650-8514, brianvh@ce.ccny.cuny.edu Ms. Hannah Aizenman: NAC 7/311, 212-650-6295, haizenman@ccny.cuny.edu Dr. Tarendra Lakhankar:

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

Matlab Instruction Primer; Chem 691, Spring 2016

Matlab 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 information

Solutions. Chapter 1. Problem 1.1. Solution. Simulate free response of damped harmonic oscillator

Solutions. Chapter 1. Problem 1.1. Solution. Simulate free response of damped harmonic oscillator Chapter Solutions Problem. Simulate free response of damped harmonic oscillator ẍ + ζẋ + x = for different values of damping ration ζ and initial conditions. Plot the response x(t) and ẋ(t) versus t and

More information

These videos and handouts are supplemental documents of paper X. Li, Z. Huang. An Inverted Classroom Approach to Educate MATLAB in Chemical Process

These videos and handouts are supplemental documents of paper X. Li, Z. Huang. An Inverted Classroom Approach to Educate MATLAB in Chemical Process These videos and handouts are supplemental documents of paper X. Li, Z. Huang. An Inverted Classroom Approach to Educate MATLAB in Chemical Process Control, Education for Chemical Engineers, 9, -, 7. The

More information

2 One-dimensional motion with constant acceleration

2 One-dimensional motion with constant acceleration 2 One-dimensional motion with constant acceleration Experiment objectives: 1. Achieve a better understanding of how to solve position, velocity and acceleration problems in one-dimensional motion with

More information

DO NOT WRITE ABOVE THIS LINE!! MATH 180 Final Exam. December 8, 2016

DO NOT WRITE ABOVE THIS LINE!! MATH 180 Final Exam. December 8, 2016 MATH 180 Final Exam December 8, 2016 Directions. Fill in each of the lines below. Circle your instructor s name and write your TA s name. Then read the directions that follow before beginning the exam.

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.

. 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 information

MECH : a Primer for Matlab s ode suite of functions

MECH : a Primer for Matlab s ode suite of functions Objectives MECH 4-563: a Primer for Matlab s ode suite of functions. Review the fundamentals of initial value problems and why numerical integration methods are needed.. Introduce the ode suite of numerical

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

The Nonlinear Pendulum

The Nonlinear Pendulum The Nonlinear Pendulum - Pádraig Ó Conbhuí - 08531749 TP Monday 1. Abstract This experiment was performed to examine the effects that linearizing equations has on the accuracy of results and to find ways

More information

Companion. Jeffrey E. Jones

Companion. Jeffrey E. Jones MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.

More information

Final exam practice 1 UCLA: Math 3B, Winter 2019

Final exam practice 1 UCLA: Math 3B, Winter 2019 Instructor: Noah White Date: Final exam practice 1 UCLA: Math 3B, Winter 2019 This exam has 7 questions, for a total of 80 points. Please print your working and answers neatly. Write your solutions in

More information

Solutions - Homework #2

Solutions - Homework #2 Solutions - Homework #2 1. Problem 1: Biological Recovery (a) A scatterplot of the biological recovery percentages versus time is given to the right. In viewing this plot, there is negative, slightly nonlinear

More information

As we begin to work on research-based assignments and to deal with nature s complexity, it is

As we begin to work on research-based assignments and to deal with nature s complexity, it is Assignment A04: Electrochemical [Mn(CO) 3 (DIPIMP)] + -Catalyzed CO 2 Reduction As we begin to work on research-based assignments and to deal with nature s complexity, it is worthwhile to reflect on a

More information

tutorial ii: One-parameter bifurcation analysis of equilibria with matcont

tutorial ii: One-parameter bifurcation analysis of equilibria with matcont tutorial ii: One-parameter bifurcation analysis of equilibria with matcont Yu.A. Kuznetsov Department of Mathematics Utrecht University Budapestlaan 6 3508 TA, Utrecht February 13, 2018 1 This session

More information

Mnova Software for Analyzing Reaction Monitoring NMR Spectra

Mnova Software for Analyzing Reaction Monitoring NMR Spectra Mnova Software for Analyzing Reaction Monitoring NMR Spectra Version 10 Chen Peng, PhD, VP of Business Development, US & China Mestrelab Research SL San Diego, CA, USA chen.peng@mestrelab.com 858.736.4563

More information

MAT300/500 Programming Project Spring 2019

MAT300/500 Programming Project Spring 2019 MAT300/500 Programming Project Spring 2019 Please submit all project parts on the Moodle page for MAT300 or MAT500. Due dates are listed on the syllabus and the Moodle site. You should include all neccessary

More information

0 for all other times. Suppose further that we sample the signal with a sampling frequency f ;. We can write x # n =

0 for all other times. Suppose further that we sample the signal with a sampling frequency f ;. We can write x # n = PSD, Autocorrelation, and Noise in MATLAB Aaron Scher Energy and power of a signal Consider a continuous time deterministic signal x t. We are specifically interested in analyzing the characteristics of

More information

Maria Cameron Theoretical foundations. Let. be a partition of the interval [a, b].

Maria Cameron Theoretical foundations. Let. be a partition of the interval [a, b]. Maria Cameron 1 Interpolation by spline functions Spline functions yield smooth interpolation curves that are less likely to exhibit the large oscillations characteristic for high degree polynomials Splines

More information

LAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION

LAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION LAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION In this lab you will learn how to use Excel to display the relationship between two quantitative variables, measure the strength and direction of the

More information

Local Basis Function Representations of Thermodynamic Surfaces. by J.Michael Brown

Local Basis Function Representations of Thermodynamic Surfaces. by J.Michael Brown Local Basis Function Representations of Thermodynamic Surfaces by J.Michael Brown This script performs the calculations associated with the section titled: Reanalysis of Sound Speed Measurements for Water

More information

Math 163: Lecture notes

Math 163: Lecture notes Math 63: Lecture notes Professor Monika Nitsche March 2, 2 Special functions that are inverses of known functions. Inverse functions (Day ) Go over: early exam, hw, quizzes, grading scheme, attendance

More information

PPT PRESENTATION. What works, and what doesn t. Associate Dean USF Graduate School. Revised

PPT PRESENTATION. What works, and what doesn t. Associate Dean USF Graduate School. Revised PPT PRESENTATION TUTORIAL What works, and what doesn t RS Pollenz, PhD Associate Dean USF Graduate School Revised 5.5.10 Acknowledgment (This tutorial was based on a previous document constructed by by

More information

E7 Midterm Exam 2. Exam Date: November 14 E7 Midterm 2, Fall 2014 NAME : SID : SECTION : 1 or 2 (please circle your discussion section ) LAB :

E7 Midterm Exam 2. Exam Date: November 14 E7 Midterm 2, Fall 2014 NAME : SID : SECTION : 1 or 2 (please circle your discussion section ) LAB : Exam Date: November 14 E7 Midterm 2, Fall 2014 E7 Midterm Exam 2 NAME : SID : SECTION : 1 or 2 (please circle your discussion section ) LAB : #11: TuTh 8-10 #12: TuTh 10-12 #13: TuTh 12-2 #14: TuTh 2-4

More information

OKLAHOMA STATE UNIVERSITY

OKLAHOMA STATE UNIVERSITY OKLAHOMA STATE UNIVERSITY ECEN 4413 - Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari 1 What is Matlab? Invented by Cleve Moler in late 1970s to

More information

Using SPSS for One Way Analysis of Variance

Using SPSS for One Way Analysis of Variance Using SPSS for One Way Analysis of Variance This tutorial will show you how to use SPSS version 12 to perform a one-way, between- subjects analysis of variance and related post-hoc tests. This tutorial

More information

Final exam (practice) UCLA: Math 31B, Spring 2017

Final exam (practice) UCLA: Math 31B, Spring 2017 Instructor: Noah White Date: Final exam (practice) UCLA: Math 31B, Spring 2017 This exam has 8 questions, for a total of 80 points. Please print your working and answers neatly. Write your solutions in

More information

Solutions to Homework 8 - Continuous-Time Markov Chains

Solutions to Homework 8 - Continuous-Time Markov Chains Solutions to Homework 8 - Continuous-Time Markov Chains 1) Insurance cash flow. A) CTMC states. Since we assume that c, d and X max are integers, while the premiums that the customers pay are worth 1,

More information

Note: 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

Note: 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 information

Submitted to Econometrica A SAMPLE DOCUMENT 1

Submitted to Econometrica A SAMPLE DOCUMENT 1 Submitted to Econometrica A SAMPLE DOCUMENT 1 First Author 2,3,, Second Author 4 and and Third Author The abstract should summarize the contents of the paper. It should be clear, descriptive, self-explanatory

More information

Introduction to ArcMap

Introduction to ArcMap Introduction to ArcMap ArcMap ArcMap is a Map-centric GUI tool used to perform map-based tasks Mapping Create maps by working geographically and interactively Display and present Export or print Publish

More information

MATH2071: LAB #5: Norms, Errors and Condition Numbers

MATH2071: LAB #5: Norms, Errors and Condition Numbers MATH2071: LAB #5: Norms, Errors and Condition Numbers 1 Introduction Introduction Exercise 1 Vector Norms Exercise 2 Matrix Norms Exercise 3 Compatible Matrix Norms Exercise 4 More on the Spectral Radius

More information

The png2pdf program. Dipl.-Ing. D. Krause

The png2pdf program. Dipl.-Ing. D. Krause The png2pdf program Dipl.-Ing. D. Krause July 10, 2006 Contents 1 Overview 2 2 Installation 3 2.1 Installation from source on UNIX systems............. 3 2.1.1 Prerequisitions....................... 3

More information

Leon, Chap. 1. Chap. 2

Leon, Chap. 1. Chap. 2 Linear Algebra for Dierential Equations Math 309.501, 309.502 Spring, 2014 Section 501: MWF 10:2011:10 (BLOC 164) Section 502: MWF 11:3012:20 (BLOC 164) Instructor: Prof. Thomas Vogel Oce: 629C Blocker

More information

Customizing pgstar for your models

Customizing 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 information

Iowa Department of Transportation Office of Transportation Data GIS / CAD Integration

Iowa Department of Transportation Office of Transportation Data GIS / CAD Integration Iowa Department of Transportation Office of Transportation Data GIS / CAD Integration From GIS data to CAD graphics - Iowa DOT's workflow utilizing GeoMedia and MicroStation to develop map products. Mark

More information

Geographic Information Systems (GIS) - Hardware and software in GIS

Geographic Information Systems (GIS) - Hardware and software in GIS PDHonline Course L153G (5 PDH) Geographic Information Systems (GIS) - Hardware and software in GIS Instructor: Steve Ramroop, Ph.D. 2012 PDH Online PDH Center 5272 Meadow Estates Drive Fairfax, VA 22030-6658

More information

Lab #8: The Unbalanced Wheel

Lab #8: The Unbalanced Wheel Lab #8: The Unbalanced Wheel OBJECTIVE Use observations to calculate the radius of gyration of a wheel. Apply energy models to the dynamics of an unbalanced rotating wheel. Learn new computing skills.

More information

Newton s Cooling Model in Matlab and the Cooling Project!

Newton s Cooling Model in Matlab and the Cooling Project! Newton s Cooling Model in Matlab and the Cooling Project! James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University March 10, 2014 Outline Your Newton

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

BASIC TECHNOLOGY Pre K starts and shuts down computer, monitor, and printer E E D D P P P P P P P P P P

BASIC TECHNOLOGY Pre K starts and shuts down computer, monitor, and printer E E D D P P P P P P P P P P BASIC TECHNOLOGY Pre K 1 2 3 4 5 6 7 8 9 10 11 12 starts and shuts down computer, monitor, and printer P P P P P P practices responsible use and care of technology devices P P P P P P opens and quits an

More information

FFT, total energy, and energy spectral density computations in MATLAB Aaron Scher

FFT, total energy, and energy spectral density computations in MATLAB Aaron Scher FFT, total energy, and energy spectral density computations in MATLAB Aaron Scher Everything presented here is specifically focused on non-periodic signals with finite energy (also called energy signals

More information

MATH 552 Spectral Methods Spring Homework Set 5 - SOLUTIONS

MATH 552 Spectral Methods Spring Homework Set 5 - SOLUTIONS MATH 55 Spectral Methods Spring 9 Homework Set 5 - SOLUTIONS. Suppose you are given an n n linear system Ax = f where the matrix A is tridiagonal b c a b c. A =.........,. a n b n c n a n b n with x =

More information

Determine the Z transform (including the region of convergence) for each of the following signals:

Determine the Z transform (including the region of convergence) for each of the following signals: 6.003 Homework 4 Please do the following problems by Wednesday, March 3, 00. your answers: they will NOT be graded. Solutions will be posted. Problems. Z transforms You need not submit Determine the Z

More information

Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave

Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave Andreas Stahel 5th December 27 Contents Vector field for the logistic equation 2 Solutions of ordinary differential equations

More information

Solutions - Homework #2

Solutions - Homework #2 45 Scatterplot of Abundance vs. Relative Density Parasite Abundance 4 35 3 5 5 5 5 5 Relative Host Population Density Figure : 3 Scatterplot of Log Abundance vs. Log RD Log Parasite Abundance 3.5.5.5.5.5

More information