# FF505/FY505 Computational Science. MATLAB Graphics. Marco Chiarandini

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 FF505/FY505 Computational Science MATLAB Marco Chiarandini Department of Mathematics and Computer Science (IMADA) University of Southern Denmark

2 Outline 1. 2D Plots 3D Plots 2

3 Outline 1. 2D Plots 3D Plots 3

4 Introduction Plot measured data (points) or functions (lines) Two-dimensional plots or xy plots help graph2d Three-dimensional plots or xyz plots or surface plots help graph3d 4

5 Nomenclature xy plot 5

6 Outline 1. 2D Plots 3D Plots 6

7 An Example: y = sin(x) x = 0:0.1:52; y = sin(x) plot(x,y) xlabel( x ) ylabel( y ) title( The sine function ) %title( F(\theta)=sin(\theta) ) The autoscaling feature in MATLAB selects tick-mark spacing. 7

8 Plotedit But better to do this with lines of code, just in case you have to redo the plot. 8

9 Saving Figures The plot appears in the Figure window. You can include it in your documents: 1. type print -dpng foo at the command line. This command sends the current plot directly to foo.png help print 2. from the File menu, select Save As, write the name and select file format from Files of Types (eg, png, jpg, etc).fig format is MATLAB format, which allows to edit 3. from the File menu, select Export Setup to control size and other parameters 4. on Windows, copy on clipboard and paste. From Edit menu, Copy Figure and Copy Options 9

10 The grid and axis Commands grid command to display gridlines at the tick marks corresponding to the tick labels. grid on to add gridlines; grid off to stop plotting gridlines; grid to toggle axis command to override the MATLAB selections for the axis limits. axis([xmin xmax ymin ymax]) sets the scaling for the x- and y-axes to the minimum and maximum values indicated. Note: no separating commas axis square, axis equal, axis auto 10

11 plot complex numbers y= i, plot(y) z= i, n=0:0.01:10, plot(z.^n), xlabels( Real ), ylabel( Imaginary ) function plot command (cos(tan(x))-tan(sin(x))); fplot(f,[1 2]) [x,y]=fplot(function,limits) plotting polynomials Eg, f(x) = 9x 3 5x 2 + 3x + 7 for 2 x 5: a = [9,-5,3,7]; x = -2:0.01:5; plot(x,polyval(a,x)),xlabel( x ),ylabel( f(x) ) 11

12 Subplots subplot command to obtain several smaller subplots in the same figure. subplot(m,n,p) divides the Figure window into an array of rectangular panes with m rows and n columns and sets the pointer after the pth pane. x = 0:0.01:5; y = exp(-1.2*x).*sin(10*x+5); subplot(1,2,1) plot(x,y),axis([ ]) x = -6:0.01:6; y = abs(x.^3-100); subplot(1,2,2) plot(x,y),axis([ ]) 12

13 Data Markers and Line Types Three components can be specified in the string specifiers along with the plotting command. They are: Line style Marker symbol Color plot(x,y,u,v, -- ) % where the symbols represent a dashed line plot(x,y, *,x,y, : ) % plot y versus x with asterisks connected with a dotted line plot(x,y, g*,x,y, r-- ) % green asterisks connected with a red dashed line % Generate some data using the besselj x = 0:0.2:10; y0 = besselj(0,x); y1 = besselj(1,x); y2 = besselj(2,x); y3 = besselj(3,x); y4 = besselj(4,x); y5 = besselj(5,x); y6 = besselj(6,x); plot(x, y0, r+, x, y1, go, x, y2, b*, x, y3, cx,... x, y4, ms, x, y5, yd, x, y6, kv ); 13

14 doc LineSpec 14

15 Labeling Curves and Data The legend command automatically obtains the line type used for each data set x = 0:0.01:2; y = sinh(x); z = tanh(x); plot(x,y,x,z, -- ),xlabel( x ) ylabel( Hyperbolic Sine and Tangent ) legend( sinh(x), tanh(x) ) 15

16 The hold Command and Text Annotations x=-1:0.01:1 y1=3+exp(-x).*sin(6*x); y2=4+exp(-x).*cos(6*x); plot(( i).^(0:0.01:10)), hold, plot(y1,y2) gtext( y2 versus y1 ) % places in a point specified by the mouse gtext( Img(z) versus Real(x), FontName, Times, Fontsize,18) text( Interpreter, latex,... String,... $(3+e^{-x}\sin({\it 6x}),4+e^{-x}\cos({\ it 6x}))$,... Position,[0,6],... FontSize,16) Search Text Properties in Help Search Mathematical symbols, Greek Letter and TeX Characters 16

17 Axes Transformations Instead of plot, plot with loglog(x,y) % both scales logarithmic. semilogx(x,y) % x scale logarithmic and the y scale rectilinear. semilogy(x,y) % y scale logarithmic and the x scale rectilinear. 17

18 Logarithmic Plots Remember: 1. You cannot plot negative numbers on a log scale: the logarithm of a negative number is not defined as a real number. 2. You cannot plot the number 0 on a log scale: log 10 0 =. 3. The tick-mark labels on a log scale are the actual values being plotted; they are not the logarithms of the numbers. Eg, the range of x values in the plot before is from 10 1 = 0.1 to 10 2 = Gridlines and tick marks within a decade are unevenly spaced. If 8 gridlines or tick marks occur within the decade, they correspond to values equal to 2, 3, 4,..., 8, 9 times the value represented by the first gridline or tick mark of the decade. 5. Equal distances on a log scale correspond to multiplication by the same constant (as opposed to addition of the same constant on a rectilinear scale). 18

19 The effect of log-transformation 19

20 Specialized plot commands Command Description bar(x,y) Creates a bar chart of y versus x stairs(x,y) Produces a stairs plot of y versus x. stem(x,y) Produces a stem plot of y versus x. 20

21 Command plotyy(x1,y1,x2,y2) polar(theta,r, type ) Description Produces a plot with two y-axes, y1 on the left and y2 on the right Produces a polar plot from the polar coordinates theta and r, using the line type, data marker, and colors specified in the string type. 21

22 Scatter Plots load count.dat scatter(count(:,1),count(:,2), r* ) xlabel( Number of Cars on Street A ); ylabel( Number of Cars on Street B ); 22

23 Error Bar Plots load count.dat; y = mean(count,2); e = std(count,1,2); figure errorbar(y,e, xr ) 23

24 Splines Add interpolation x=1:24 y=count(:,2) xx=0:.25:24 yy=spline(x,y,xx) plot(x,y, o,xx,yy) 24

25 Outline 1. 2D Plots 3D Plots 25

26 Three-Dimensional Line Plots Plot in 3D the curve: x = e 0.05t sin(t), y = e 0.05t cos(t), z = t t = 0:pi/50:10*pi; plot3(exp(-0.05*t).*sin(t), exp(-0.05*t).*cos(t), t) xlabel( x ), ylabel( y ), zlabel( z ), grid 26

27 Surface Plots Surface plot of the function z = xe [(x y2 ) 2 +y 2], for 2 x 2 and 2 y 2 with a spacing of 0.1 [X,Y] = meshgrid(-2:0.1:2); Z = X.*exp(-((X-Y.^2).^2+Y.^2)); mesh(x,y,z), xlabel( x ), ylabel( y ), zlabel( z ) % or also surf 27

28 Contour Plots Contour plot of the function z = xe [(x y2 ) 2 +y 2], for 2 x 2 and 2 y 2 with a spacing of 0.1 [X,Y] = meshgrid(-2:0.1:2); Z = X.*exp(-((X-Y.^2).^2+Y.^2)); contour(x,y,z), xlabel( x ), ylabel( y ) 28

29 Three-Dimensional Plotting Functions Function contour(x,y,z) mesh(x,y,z) meshc(x,y,z) meshz(x,y,z) surf(x,y,z) surfc(x,y,z) [X,Y] = meshgrid(x,y) [X,Y] = meshgrid(x) waterfall(x,y,z) Description Creates a contour plot. Creates a 3D mesh surface plot. Same as mesh but draws contours under the surface. Same as mesh but draws vertical reference lines under the surface. Creates a shaded 3D mesh surface plot. Same as surf but draws contours under the surface. Creates the matrices X and Y from the vectors x and y to define a rectangular grid. Same as [X,Y]= meshgrid(x,x). Same as mesh but draws mesh lines in one direction only. 29

30 a) mesh, b) meshc, c) meshz, d) waterfall 30

31 Vector fields Use quiver to display an arrow at each data point in x and y such that the arrow direction and length represent the corresponding values of the vectors u and v. [x,y] = meshgrid(0:0.2:2,0:0.2:2); u = cos(x).*y; v = sin(x).*y; figure quiver(x,y,u,v) 31

32 Guidelines for Making Plots Should the experimental setup from the exploratory phase be redesigned to increase conciseness or accuracy? What parameters should be varied? What variables should be measured? Should a 3D-plot be replaced by collections of 2D-curves? Can we reduce the number of curves to be displayed? How many figures are needed? Should the x-axis be transformed to magnify interesting subranges? Should the x-axis have a logarithmic scale? If so, do the x-values used for measuring have the same basis as the tick marks? 32

33 Make sure that each axis is labeled with the name of the quantity being plotted and its units. Make tick marks regularly paced and easy to interpret and interpolate, eg, 0.2, 0.4, rather than 0.23, 0.46 Use the same scale limits and tick spacing on each plot if you need to compare information on more than one plot. Is the range of x-values adequate? Do we have measurements for the right x-values, i.e., nowhere too dense or too sparse? Should the y-axis be transformed to make the interesting part of the data more visible? Should the y-axis have a logarithmic scale? Is it misleading to start the y-range at the smallest measured value? (if not too much space wasted start from 0) Clip the range of y-values to exclude useless parts of curves?

34 Can we use banking to 45 o? Are all curves sufficiently well separated? Can noise be reduced using more accurate measurements? Are error bars needed? If so, what should they indicate? Remember that measurement errors are usually not random variables. Connect points belonging to the same curve. Only use splines for connecting points if interpolation is sensible. Do not connect points belonging to unrelated owners. Use different point and line styles for different curves. Use the same styles for corresponding curves in different graphs. Place labels defining point and line styles in the right order and without concealing the curves. 34

35 Captions should make figures self contained. Give enough information to make experiments reproducible. Golden ratio rule: make the graph wider than higher [Tufte 1983]. Rule of 7: show at most 7 curves (omit those clearly irrelevant). Avoid: explaining axes, connecting unrelated points by lines, cryptic abbreviations, microscopic lettering, pie charts 35

### Lecture 6: Plotting in MATLAB

Lecture 6: Plotting in MATLAB Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE21: Computer Applications. See Textbook Chapter 5. A picture is worth a thousand words MATLAB allows

### Lab of COMP 406 Introduction of Matlab (II) Graphics and Visualization

Lab of COMP 406 Introduction of Matlab (II) Graphics and Visualization Teaching Assistant: Pei-Yuan Zhou Contact: cspyzhou@comp.polyu.edu.hk Lab 2: 19 Sep., 2014 1 Review Find the Matlab under the folder

### Math Sciences Computing Center. University ofwashington. September, Fundamentals Making Plots Printing and Saving Graphs...

Introduction to Plotting with Matlab Math Sciences Computing Center University ofwashington September, 1996 Contents Fundamentals........................................... 1 Making Plots...........................................

### W1005 Intro to CS and Programming in MATLAB. Plo9ng & Visualiza?on. Fall 2014 Instructor: Ilia Vovsha. hgp://www.cs.columbia.

W1005 Intro to CS and Programming in MATLAB Plo9ng & Visualiza?on Fall 2014 Instructor: Ilia Vovsha hgp://www.cs.columbia.edu/~vovsha/w1005 Outline Plots (2D) Plot proper?es Figures Plots (3D) 2 2D Plots

### Introduction to MATLAB

Introduction to MATLAB Violeta Ivanova, Ph.D. MIT Academic Computing violeta@mit.edu http://web.mit.edu/violeta/www/iap2006 Topics MATLAB Interface and Basics Linear Algebra and Calculus Graphics Programming

### 12 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.

### Lecture 3 for Math 398 Section 952: Graphics in Matlab

Lecture 3 for Math 398 Section 952: Graphics in Matlab Thomas Shores Department of Math/Stat University of Nebraska Fall 2002 A good deal of this material comes from the text by Desmond Higman and Nicholas

### Introduction to Matlab for Engineers

Introduction to Matlab for Engineers Instructor: Thai Nhan Math 111, Ohlone, Spring 2016 Introduction to Matlab for Engineers Ohlone, Spring 2016 1/19 Today s lecture 1. The subplot command 2. Logarithmic

### Introduction to graphics

7 Introduction to graphics Objective The objective of this chapter is to introduce you to MATLAB s high-level 2-D and 3-D plotting facilities. A picture, it is said, is worth a thousand words. MATLAB has

### Introduction to MATLAB: Graphics

Introduction to MATLAB: Graphics Eduardo Rossi University of Pavia erossi@eco.unipv.it September 2014 Rossi Introduction to MATLAB Financial Econometrics - 2014 1 / 14 2-D Plot The command plot provides

### GUI Alternatives. Syntax. Description. MATLAB Function Reference plot. 2-D line plot

MATLAB Function Reference plot 2-D line plot GUI Alternatives Use the Plot Selector to graph selected variables in the Workspace Browser and the Plot Catalog, accessed from the Figure Palette. Directly

### The College of Staten Island

The College of Staten Island Department of Mathematics 0.5 0 0.5 1 1 0.5 0.5 0 0 0.5 0.5 1 1 MTH 233 Calculus III http://www.math.csi.cuny.edu/matlab/ MATLAB PROJECTS STUDENT: SECTION: INSTRUCTOR: BASIC

### Additional 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

### DATA PLOTTING WITH MATLAB

DATA PLOTTING WITH MATLAB Prof. Marco Pilotti marco.pilotti@ing.unibs.it Dr. Giulia Valerio giulia.valerio@ing.unibs.it Giulia Valerio 7Marzo 2014 1 1. WHY MATLAB? WHY MATLAB? Matlab is a high-level programming

### MATLAB Guide to Fibonacci Numbers

MATLAB Guide to Fibonacci Numbers and the Golden Ratio A Simplified Approach Peter I. Kattan Petra Books www.petrabooks.com Peter I. Kattan, PhD Correspondence about this book may be sent to the author

### Introduction to Matlab

NDSU Introduction to Matlab pg 1 Becoming familiar with MATLAB The console The editor The graphics windows The help menu Saving your data (diary) Solving N equations with N unknowns Least Squares Curve

### NatSciLab - Numerical Software Introduction to MATLAB

Outline 110112 NatSciLab - Numerical Software Introduction to MATLAB Onur Oktay Jacobs University Bremen Spring 2010 Outline 1.m files 2 Programming Branching (if, switch) Loops (for, while) 3 Anonymous

### Fondamenti di Informatica Examples: Plotting 2013/06/13

Fondamenti di Informatica Examples: Plotting 2013/06/13 Prof. Emiliano Casalicchio emiliano.casalicchio@uniroma2.it Objectives This chapter presents the principles and practice of plotting in the following

### LabVIEW MathScript Quick Reference

Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics LabVIEW MathScript Quick Reference Hans-Petter Halvorsen, 2012.06.14 Faculty of Technology, Postboks

### Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

### Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures

Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures Matlab is flexible enough to let you quickly visualize data, and

### Introduction to Matlab

Introduction to Matlab Matlab (MATrix LABoratory) will be the programming environment of choice for the numerical solutions developed in this textbook due to its wide availability and its ease of use.

### ECE 202 LAB 3 ADVANCED MATLAB

Version 1.2 1 of 13 BEFORE YOU BEGIN PREREQUISITE LABS ECE 201 Labs EXPECTED KNOWLEDGE ECE 202 LAB 3 ADVANCED MATLAB Understanding of the Laplace transform and transfer functions EQUIPMENT Intel PC with

### Name: Math Analytic Geometry and Calculus III - Spring Matlab Project - due on Wednesday, March 30

Name: Math 275 - Analytic Geometry and Calculus III - Spring 2011 Solve the following problems: Matlab Project - due on Wednesday, March 30 (Section 14.1 # 30) Use Matlab to graph the curve given by the

### fplot Syntax Description Examples Plot Symbolic Expression Plot symbolic expression or function fplot(f) fplot(f,[xmin xmax])

fplot Plot symbolic expression or function Syntax fplot(f) fplot(f,[xmin xmax]) fplot(xt,yt) fplot(xt,yt,[tmin tmax]) fplot(,linespec) fplot(,name,value) fplot(ax, ) fp = fplot( ) Description fplot(f)

### SGN Introduction to Matlab

SGN-84007 Introduction to Matlab Lecture 4: Data Visualization Heikki Huttunen Alessandro Foi October 10, 2016 Outline Basics: figure, axes, handles, properties; Plotting univariate and multivariate data;

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

### Programming in Mathematics. Mili I. Shah

Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window

### MATLAB Functions and Graphics

Functions and Graphics We continue our brief overview of by looking at some other areas: Functions: built-in and user defined Using M-files to store and execute statements and functions A brief overview

### Basic Plotting. All plotting commands have similar interface: Most commonly used plotting commands include the following.

2D PLOTTING Basic Plotting All plotting commands have similar interface: y-coordinates: plot(y) x- and y-coordinates: plot(x,y) Most commonly used plotting commands include the following. plot: Draw a

### ! The MATLAB language

E2.5 Signals & Systems Introduction to MATLAB! MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to -use environment. Typical

PREFACE CEMTool (Computer-aided Engineering & Mathematics Tool) is a useful computational tool in science and engineering. No matter what you background be it physics, chemistry, math, or engineering it

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

### UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

### Introduction to Matlab

Introduction to Matlab The purpose of this intro is to show some of Matlab s basic capabilities. Nir Gavish, 2.07 Contents Getting help Matlab development enviroment Variable definitions Mathematical operations

### 2. Plotting in MATLAB

2. Plotting in MATLAB MATLAB provides several methods for plotting the graphs of functions and more general curves. The easiest to use is what we will call EZ plotting, since it uses the command ezplot

### Matlab Lecture 1 - Introduction to MATLAB. Five Parts of Matlab. Entering Matrices (2) - Method 1:Direct entry. Entering Matrices (1) - Magic Square

Matlab Lecture 1 - Introduction to MATLAB Five Parts of Matlab MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-touse

### DataPlotClasses for REALBasic

User s Guide v 1.3.1 Roger Meier, January 2015 Table of Contents DataPlotClasses for REALBasic... 1 Table of Contents... 1 List of Figures... 4 List of Tables... 4 1. Introduction... 5 2. Getting Started...

### CDA6530: 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

### Reference and Style Guide for Microsoft Excel

Reference and Style Guide for Microsoft Excel TABLE OF CONTENTS Getting Acquainted 2 Basic Excel Features 2 Writing Cell Equations Relative and Absolute Addresses 3 Selecting Cells Highlighting, Moving

### CDA6530: 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

### Math 7 Elementary Linear Algebra PLOTS and ROTATIONS

Spring 2007 PLOTTING LINE SEGMENTS Math 7 Elementary Linear Algebra PLOTS and ROTATIONS Example 1: Suppose you wish to use MatLab to plot a line segment connecting two points in the xy-plane. Recall that

### 1 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,

### CDA5530: Performance Models of Computers and Networks. Chapter 8: Using Matlab for Performance Analysis and Simulation

CDA5530: Performance Models of Computers and Networks Chapter 8: Using Matlab for Performance Analysis and Simulation Objective Learn a useful tool for mathematical analysis and simulation Interpreted

### By Edward Grossman Edited and Updated by Mark Turner

By Edward Grossman Edited and Updated by Mark Turner Table of Contents Chapter Pages Chapter : Interactive Graphing..7 Chapter : Script-files or M-files..6 Chapter 3: Data Plotting 3. 3. Chapter 4: Three

### Computational Foundations of Cognitive Science. Inverse. Inverse. Inverse Determinant

Computational Foundations of Cognitive Science Lecture 14: s and in Matlab; Plotting and Graphics Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February 23, 21 1 2 3 Reading:

### MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)

MATLAB sessions: Laboratory 3 1 MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand

### Getting Started with Matlab

Chapter Getting Started with Matlab The computational examples and exercises in this book have been computed using Matlab, which is an interactive system designed specifically for scientific computation

### Quick MATLAB Syntax Guide

Quick MATLAB Syntax Guide Some useful things, not everything if-statement Structure: if (a = = = ~=

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

### Matlab programming, plotting and data handling

Matlab programming, plotting and data handling Andreas C. Kapourani (Credit: Steve Renals & Iain Murray) 25 January 27 Introduction In this lab session, we will continue with some more sophisticated matrix

### ELEN E3084: Signals and Systems Lab Lab II: Introduction to Matlab (Part II) and Elementary Signals

ELEN E384: Signals and Systems Lab Lab II: Introduction to Matlab (Part II) and Elementary Signals 1 Introduction In the last lab you learn the basics of MATLAB, and had a brief introduction on how vectors

### Spreadsheet and Graphing Exercise Biology 210 Introduction to Research

1 Spreadsheet and Graphing Exercise Biology 210 Introduction to Research There are many good spreadsheet programs for analyzing data. In this class we will use MS Excel. Below are a series of examples

### Introduction 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,

### MATLAB: A Powerful Tool for Computation and visualization

MATLAB: A Powerful Tool for Computation and visualization Shuxia Zhang and Ravi Chityala Sumpercomputing Institute University of Minnesota e-mail: szhang@msi.umn.edu,chityala@msi.umn.edu Tel:612-624-8858

### Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017 Appendix A Glossary of Matlab Commands Mathematical Operations + Addition. Type help plus

### Matlab Notes for Calculus 3. Lia Vas

Matlab Notes for Calculus 3 Lia Vas Content 0. Review of Matlab. Representing Functions. Solving Equations. Basic Graphing. Differentiation and Integration. 1. Vectors. 2. Differentiation of Multi-variable

### MATLAB Examples. Interpolation and Curve Fitting. Hans-Petter Halvorsen

MATLAB Examples Interpolation and Curve Fitting Hans-Petter Halvorsen Interpolation Interpolation is used to estimate data points between two known points. The most common interpolation technique is Linear

### Visualisation Lab: gnuplot

Visualisation Lab: gnuplot Anton Gerdelan February 2, 2012 What is gnuplot? gnuplot is a tool for creating graphs and charts. gnuplot has a terminal. You can enter commands to tell gnuplot how to format

### MAT 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

Section 1: Welcome to DADiSP Getting Started with DADiSP This guide is designed to introduce you to the DADiSP environment. It gives you the opportunity to build and manipulate your own sample Worksheets

### Starting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below.

What is MATLAB? MATLAB (short for MATrix LABoratory) is a language for technical computing, developed by The Mathworks, Inc. (A matrix is a rectangular array or table of usually numerical values.) MATLAB

### ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips

Cal Poly San Luis Obispo Mechanical Engineering ME Mechanical Control Systems Matlab/Simulink Hints and Tips Ridgely/Owen, last update Jan Building A Model The way in which we construct models for analyzing

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

Department of Electrical Engineering EE281 Introduction to MATLAB on the Region IV Computing Facilities 1 What is Matlab? Matlab is a high-performance interactive software package for scientic and enginnering

### MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)

MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand the fundamentals of numerical approximations.

### Basic MATLAB Intro III

Basic MATLAB Intro III Plotting Here is a short example to carry out: >x=[0:.1:pi] >y1=sin(x); y2=sqrt(x); y3 = sin(x).*sqrt(x) >plot(x,y1); At this point, you should see a graph of sine. (If not, go to

### Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data The following table shows the raw data which you need to fit to an appropriate equation k (s -1 ) T (K) 0.00043 312.5 0.00103 318.47 0.0018

### II-12Graphs. Chapter II-12

Chapter II-12 II-12Graphs Overview... 212 Graph Features... 212 The Graph Menu... 213 Typing in Graphs... 213 Graph Names... 213 Creating Graphs... 213 Waves and Axes... 215 Types of Axes... 215 Appending

### MOVING FROM CELL TO CELL

VCAE: EXCEL Lesson 1 Please send comments to Author: Zahra Siddiqui at zed_ess@hotmail.com Concepts Covered: Cell Address; Cell Pointer; Moving across Cells Constants: Entering, Editing, Formatting Using

### User Manual MS Energy Services

User Manual MS Energy Services Table of content Access 4 Log In 4 Home Page 5 Add pre-visualisations 6 Pre-visualisation with variables 7 Multiple pre-visualisations 8 Pre-visualisation window 8 Design

### QUICK INTRODUCTION TO MATLAB PART I

QUICK INTRODUCTION TO MATLAB PART I Department of Mathematics University of Colorado at Colorado Springs General Remarks This worksheet is designed for use with MATLAB version 6.5 or later. Once you have

### MATLAB Vocabulary. Gerald Recktenwald. Version 0.965, 25 February 2017

MATLAB Vocabulary Gerald Recktenwald Version 0.965, 25 February 2017 MATLAB is a software application for scientific computing developed by the Mathworks. MATLAB runs on Windows, Macintosh and Unix operating

### Introduction to MATLAB

Quick Start Tutorial Introduction to MATLAB Hans-Petter Halvorsen, M.Sc. What is MATLAB? MATLAB is a tool for technical computing, computation and visualization in an integrated environment. MATLAB is

### Simulating Gradient Contour and Mesh of a Scalar Field Usman Ali Khan, Bismah Tariq, Khalida Raza, Saima Malik, Aoun Muhammad

Vol:5, No:8, 11 Simulating Gradient Contour and Mesh of a Scalar Field Usman Ali Khan, Bismah Tariq, Khalida Raza, Saima Malik, Aoun Muhammad International Science Index, Physical and Mathematical Sciences

### You can change the line style by adding some information in the plot command within single quotation marks.

Plotting Continued: You can change the line style by adding some information in the plot command within single quotation marks. y = x.^2; plot(x,y, '-xr') xlabel('x, meters') ylabel('y, meters squared')

### Lecture 1: What is MATLAB?

Lecture 1: What is MATLAB? Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1. MATLAB MATLAB (MATrix LABoratory) is a numerical

### MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.

MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab

### Formal Figure Formatting Checklist

Formal Figure Formatting Checklist Presentation of Data Independent values are plotted on the x-axis, dependent values on the y-axis In general, no more than five curves to a figure (may be more or less

### GNUPLOT Interface for REDUCE Version 4

GNUPLOT Interface for REDUCE Version 4 Herbert Melenk Konrad Zuse Zentrum für Informationstechnik Berlin E mail: Melenk@zib.de 1 Introduction The GNUPLOT system provides easy to use graphics output for

### Graphing with a Graphing Calculator

APPENDIX C Graphing with a Graphing Calculator A graphing calculator is a powerful tool for graphing equations and functions. In this appendix we give general guidelines to follow and common pitfalls to

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

### Homework #5. Plot labeled contour lines of the stresses below and report on how you checked your plot (see page 2):

Homework #5 Use the equations for a plate under a uniaxial tension with a hole to model the stresses in the plate. Use a unit value for the tension (i.e., Sxx infinity = 1), let the radius "a" of the hole

### Introduction to the workbook and spreadsheet

Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.

### Scientific Python: matplotlib

Scientific Python: matplotlib 17 July 2014 Introduction and Aims This exercise introduces the matplotlib module of Python. Matplotlib is a versatile plotting library that can be used to produce both quick

### Scientific Graphing in Excel 2007

Scientific Graphing in Excel 2007 When you start Excel, you will see the screen below. Various parts of the display are labelled in red, with arrows, to define the terms used in the remainder of this overview.

### Introduction to Mathematica and Graphing in 3-Space

1 Mathematica is a powerful tool that can be used to carry out computations and construct graphs and images to help deepen our understanding of mathematical concepts. This document will serve as a living

### Using the Matplotlib Library in Python 3

Using the Matplotlib Library in Python 3 Matplotlib is a Python 2D plotting library that produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.

### Tim Love. July 24, Introduction 2. 2 Info and help commands 2

Using Matlab at CUED Tim Love July 24, 2006 Abstract This document does not try to describe matlab comprehensively (see matlab s HelpDesk or the installed tutorial documents 1 for this), rather it introduces

### ARRAY VARIABLES (ROW VECTORS)

11 ARRAY VARIABLES (ROW VECTORS) % Variables in addition to being singular valued can be set up as AN ARRAY of numbers. If we have an array variable as a row of numbers we call it a ROW VECTOR. You can

### Desktop Studio: Charts. Version: 7.3

Desktop Studio: Charts Version: 7.3 Copyright 2015 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not be copied or derived from,

### Chapter 2 (Part 2) MATLAB Basics. dr.dcd.h CS 101 /SJC 5th Edition 1

Chapter 2 (Part 2) MATLAB Basics dr.dcd.h CS 101 /SJC 5th Edition 1 Display Format In the command window, integers are always displayed as integers Characters are always displayed as strings Other values

### Excel 2013 Intermediate

Instructor s Excel 2013 Tutorial 2 - Charts Excel 2013 Intermediate 103-124 Unit 2 - Charts Quick Links Chart Concepts Page EX197 EX199 EX200 Selecting Source Data Pages EX198 EX234 EX237 Creating a Chart

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

### Final Practice. True/False Indicate whether the statement is true or false. Name: Class: Date: 1. An Access database may be as large as 200 gigabytes.

Name: Class: Date: Final Practice True/False Indicate whether the statement is true or false. 1. An Access database may be as large as 200 gigabytes. 2. Tables contain all of the data in the database.

### Beyond the Mouse A Short Course on Programming

1 / 15 Beyond the Mouse A Short Course on Programming 5. Matlab IO: Getting data in and out of Matlab Ronni Grapenthin and Glenn Thompson Geophysical Institute, University of Alaska Fairbanks October 11,

### LAB 1: Introduction to MATLAB Summer 2011

University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 311: Digital Signal Processing Lab Chandra Radhakrishnan Peter Kairouz LAB 1: Introduction to MATLAB Summer

### The Industry Standard in Mapping Solutions. Contouring and 3D Surface Mapping for Scientists and Engineers

The Industry Standard in Mapping Solutions Only \$599! Contouring and 3D Surface Mapping for Scientists and Engineers w w w. g o l d e n s o f t w a r e. c o m The software of choice for creating contour