MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today.

Size: px
Start display at page:

Download "MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today."

Transcription

1 Class15

2 MATLAB 2-D Plotting Matlab has many useful plotting options available! We ll review some of them today. help graph2d will display a list of relevant plotting functions.

3 Plot Command Plot command used to make basic 2D plots. Simplest form is plot(x,y) x and y are vectors that have same size (number of elements) but any dimension x-values on horizontal axis, y-values on vertical axis

4 One way to plot a function of an independent variable: 1. Create a vector of values of the independent variable 2. Create a vector of value of function at every element of above vector 3. Plot using plot(x,y)

5 Example Problem: plot y = x cos(6x) colon and dot notation for arrays x = [ 2:0.1:4]; y = 3.5.^( 0.5*x).*cos(6*x); plot(x,y) xlabel('value of x') ylabel('value of y') title('problem 10') text(0,1, engr 104 week X') standard form for plot, xv on the horiz axis, y on vert axis. annotation tools

6 Figure Window with Plot of function y = x cos(6x)

7 To copy entire Figure Window into another program, e.g., Word, PowerPoint 1. Click on Figure Window to make it current window 2. Use Snipping Tools in Windows

8 To copy just plot area of Figure Window into another program, e.g., Word, PowerPoint 1. In Figure Window, select Edit Copy Figure 2. Paste into other application

9 Spruce up a plot by adding Axis labels (<- important!) Title Legend Text Grid Custom axis ranges

10 Common MATLAB plotting commands Command xlabel ( text ) ylabel ( text ) title ( text ) text (x, y, text ) axis ([xmin xmax ymin ymax]) grid Description Adds a text label to the horizontal axis Adds a text label to the vertical axis Puts text in a title at the top of the plot Place text at specified coordinates Sets the minimum and maximum limits of the x- and y- axes Puts grid lines on the plot

11 Plot Formatting Commands Command line manipulation is available through optional additional arguments: plot(x,y, 'linespecifiers' ) line specifiers are optional and can be used to define the style and color of the line and the type of markers (if markers are desired). Line Style Specifier solid (default) - dashed - - dotted : dash-dot -. Line Color Specifier red r green g blue b cyan c magenta m yellow black white y k w

12 Marker Type Specifiers Marker Type Specifier plus sign + circle asterisk * point. cross triangle (pointed up) triangle (pointed down) o x ^ v Marker Type square diamond five-pointed star six-pointed star Specifier s d p h triangle (pointed left) < triangle (pointed right) >

13 Notes about specifiers The specifiers are typed inside the plot command as strings. Within the string the specifiers can be typed in any order. The specifiers are optional. This means that none, one, two, or all three can be included in the command.

14 A plot can be made from measured data or from an equation General form: plot(x,y, ' ') The order of specifiers is not important! Color: k black r red b blue g green y yellow c cyan w white m magenta Symbol:. point o circle x x-mark s square d diamond etc. Line type: - solid : dotted -- dashed -. dash-dot

15 Example plot command w/ Line Specifiers plot(x,y, ' r : d ' ) red dotted line diamonds A red dotted line connects the points that are marked with diamond markers.

16 Plot Formatting Commands More command line manipulation: optional additional arguments: plot(x,y, 'line specifiers, Property name, Property value) Property name and property value can be used to specify the line width, and marker s size and edge, and fill colors. Property name Description Possible property values linewidth Specifies the width of the line. A number in units of points (default 0.5) markersize markeredgecolor markerfacecolor Specifies the size of the marker Specifies the color of the marker, or the color of the edge line for filled markers Specifies the color of the filling for filled markers A number in units of points Color specifiers from the earlier table, typed as string Color specifiers from the earlier table, typed as string.

17 Example plot command w/ Properties plot(x,y, 'linewidth',7 ) line width is 7 points

18 solid black line with circle markers Line width, 3 units (default 0.5) plot(x,y, '- k o', 'LineWidth', 3, 'MarkerSize', 6, 'MarkerEdgeColor','red','MarkerFaceColor','green')

19 Multiple Plots on the Same Axes Plot allows multiple sets of arrays and line specifiers: Note colors differ

20 Can use line specifiers for multiple plots.

21 Can also use hold to freeze the plot Following the hold on command, the first plot remains open, including axis properties and formatting. Additional graphs are added with each plot command, until the command hold off is typed. Now, note colors

22 Other Plot Formatting Commands Adding Text xlabel( 'string' ) ylabel( 'string' ) title( 'string' ) text( x, y, 'string' ) gtext( 'string' ) cursor controlled legend( 'string1', 'stringn', pos) Location where text is started text location is controlled by cursor Formatting of the text can be done either by adding modifiers inside the string, or by adding the command optional PropertyName and PropertyValue arguments following the string.

23 Legend Position pos = -1 pos = 0 pos = 1 pos = 2 pos = 3 pos = 4 Places the legend outside the axes boundaries on the right side. Places the legend inside the axes boundaries in a location that interferes least with the graphs. Places the legend at the upper-right corner of the plot (default) Places the legend at the upper-left corner of the plot Places the legend at the lower-left corner of the plot Places the legend at the lower-right corner of the plot

24 Example plot with specifiers and legend

25 Some text modifiers Modifier \bf \it \rm \fontname{fontname} \fontsize{fontsize} Effect bold font italic style normal font specified font is used specified font size These modifiers affect the text from the point that they are inserted until the end of the string. It is also possible to have the modifiers applied to only a section of the string by typing the modifier and the text to be affected inside braces { }.

26 Using PropertyName and PropertyValue to format text. Property Name Description Possible Property Values Rotation FontAngle FontName FontSize FontWeight Specifies the orientation of the text Specifies italic or normal style characters Specifies the font for the text Specifies the size of the font Specifies the weight of the characters Scalar (degrees) Default: 0 normal, italic Default: normal Font name that is available in the system Scalar (points) Default: 10 light, normal, bold Default: normal

27 Using PropertyName and PropertyValue to format text. Property Name Description Possible Property Values Color Specifies the color of the text Color specifiers as presented earlier BackgroundColor EdgeColor Specifies the background color (rectangular area) Specifies the color of the edge of a rectangular box around the text Color specifiers as presented earlier Color specifiers as presented earlier LineWidth Specifies the width of the edge of a rectangular box around the text Color specifiers as presented earlier General Form: text(x,y, text as string,propertyname,propertyvalue)

28 Example: gtext( 'cosine', 'fontsize', 20, 'rotation', 45, 'color', 'red', )

29 Greek Characters Character in the string \alpha \beta \gamma \theta \pi \Phi \Delta \Gamma \Lambda \Omega \Sigma Greek letter a b g D G L S Greek characters can be included in the text by typing \name of the letter within the string.

30 Example superscript command Add greek letters, sub and superscripts E.g. gtext( '\beta_1 x^2' ) subscript command

31 Formatting Plots The Axes Adding a grid grid Setting the axis limits: axis( [ xmin xmax ymin ymax ] )

32 E.g.

33 Can plot on logarithmic axes using: semilogy(x,y) plots y versus x with log (base 10) scale for the y axis and linear scale for the x axis. semilogx(x,y) plots y versus x with log (base 10) scale for the x axis and linear scale for the y axis. loglog(x,y) plots y versus x with log (base 10) scale for both axes. Note negative data is ignored

34 Script File for Formatted 2D plot % Example plot for demonstrating 2D plots in MATLAB x=[10:0.1:22]; y=95000./x.^2; xd=[10:2:22]; yd=[ ]; plot(x,y,'-','linewidth', 1.0) xlabel('distance (cm)') ylabel('intensity (lux)') title ('\fontname{arial}light Intensity as a Function of Distance', 'Fontsize',14) axis([ ]) text(14, 700, 'Comparison between theory and experiment.', 'EdgeColor', 'r', 'LineWidth', 2) hold on plot(xd, yd, 'ro--', 'linewidth', 1.0, 'markersize', 10) legend('theory', 'Experiment', 0) hold off formatting text inside the title command formatting text inside the text command using PropertyName

35 INTENSITY (lux) Plot Title Legend Light Instensity as a Function of Distance Theory Experiment Y Axis Label 800 Comparison between theory and experiment Marker Text Label DISTANCE (cm) X Axis Label

36 Property Editor A plot can also be formatted interactively in the Figure Window by clicking on the plot and/or using the menus.. is limited to a single figure is tedious to repeat for other plots

37 MATLAB has interactive tools for modifying plots engr 104

38 Click on the arrow to start interaction Double click on some part of the figure to initiate choices

39 Modify text: Or the lines themselves:

40 Figure Files Save to create a.fig file

41 Figures outside MATLAB Print them: Copy for pasting

42 Multiple plots on same page - Subplot General Form subplot (m, n, p) Command divides the Figure Window into m x n rectangular subplots (3,2,1) (3,2,2) the value of p determines the current plot (3,2,3) (3,2,4) (3,2,5) (3,2,6)

Two-Dimensional Plots

Two-Dimensional Plots Chapter 5 Two-Dimensional Plots Plots are a very useful tool for presenting information. This is true in any field, but especially in science and engineering where MATLAB is mostly used. MATLAB has many

More information

Plotting. Aaron S. Donahue. Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140

Plotting. Aaron S. Donahue. Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140 Plotting Aaron S. Donahue Department of Civil and Environmental Engineering and Earth Sciences University of Notre Dame January 28, 2013 CE20140 A. S. Donahue (University of Notre Dame) Lecture 4 1 / 15

More information

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering 1 Introduction Plots are a very useful tool for presenting information.

More information

Contents. An introduction to MATLAB for new and advanced users

Contents. An introduction to MATLAB for new and advanced users An introduction to MATLAB for new and advanced users (Using Two-Dimensional Plots) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional

More information

MATLAB: Plots. The plot(x,y) command

MATLAB: Plots. The plot(x,y) command MATLAB: Plots In this tutorial, the reader will learn about obtaining graphical output. Creating a proper engineering plot is not an easy task. It takes lots of practice, because the engineer is trying

More information

MATLAB - Lecture # 5

MATLAB - Lecture # 5 MATLAB - Lecture # 5 Two Dimensional Plots / Chapter 5 Topics Covered: 1. Plotting basic 2-D plots. The plot command. The fplot command. Plotting multiple graphs in the same plot. MAKING X-Y PLOTS 105

More information

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5)

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5) CSCD 409 Scientific Programming Module 6: Plotting (Chpt 5) 2008-2012, Prentice Hall, Paul Schimpf All rights reserved. No portion of this presentation may be reproduced, in whole or in part, in any form

More information

Worksheet 5. Matlab Graphics

Worksheet 5. Matlab Graphics Worksheet 5. Matlab Graphics Two dimesional graphics Simple plots can be made like this x=[1.5 2.2 3.1 4.6 5.7 6.3 9.4]; y=[2.3 3.9 4.3 7.2 4.5 6.1 1.1]; plot(x,y) plot can take an additional string argument

More information

Computer Programming: 2D Plots. Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University

Computer Programming: 2D Plots. Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University Computer Programming: 2D Plots Asst. Prof. Dr. Yalçın İşler Izmir Katip Celebi University Outline Plot Fplot Multiple Plots Formatting Plot Logarithmic Plots Errorbar Plots Special plots: Bar, Stairs,

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Plot (2D) plot(x,y, -mo, LineWidth,2, markersize,12, MarkerEdgeColor, g, markerfacecolor, y ) Plot (2D) Plot of a Function As an example, the plot command

More information

Chapter 5 Advanced Plotting

Chapter 5 Advanced Plotting PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition Chapter 5 Advanced Plotting Copyright 2010. The McGraw-Hill Companies, Inc. This work is only for non-profit use by instructors

More information

Making 2D Plots in Matlab

Making 2D Plots in Matlab Making 2D Plots in Matlab Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Plotting with Matlab Overview Plotting in Matlab Plotting (x, y) data

More information

Two-dimensional Plots

Two-dimensional Plots Two-dimensional Plots ELEC 206 Prof. Siripong Potisuk 1 The Plot Command The simplest command for 2-D plotting Syntax: >> plot(x,y) The arguments x and y are vectors (1-D arrays) which must be of the same

More information

Week 2: Plotting in Matlab APPM 2460

Week 2: Plotting in Matlab APPM 2460 Week 2: Plotting in Matlab APPM 2460 1 Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization,

More information

Outline. 1 File access. 2 Plotting Data. 3 Annotating Plots. 4 Many Data - one Figure. 5 Saving your Figure. 6 Misc. 7 Examples

Outline. 1 File access. 2 Plotting Data. 3 Annotating Plots. 4 Many Data - one Figure. 5 Saving your Figure. 6 Misc. 7 Examples Outline 9 / 15 1 File access 2 Plotting Data 3 Annotating Plots 4 Many Data - one Figure 5 Saving your Figure 6 Misc 7 Examples plot 2D plotting 1. Define x-vector 2. Define y-vector 3. plot(x,y) >> x

More information

Plotting in MATLAB. Trevor Spiteri

Plotting in MATLAB. Trevor Spiteri Functions and Special trevor.spiteri@um.edu.mt http://staff.um.edu.mt/trevor.spiteri Department of Communications and Computer Engineering Faculty of Information and Communication Technology University

More information

Chapter 5 Advanced Plotting and Model Building

Chapter 5 Advanced Plotting and Model Building PowerPoint to accompany Introduction to MATLAB 7 for Engineers Chapter 5 Advanced Plotting and Model Building Copyright 2005. The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

More information

INTRODUCTION TO MATLAB by. Introduction to Matlab

INTRODUCTION TO MATLAB by. Introduction to Matlab INTRODUCTION TO MATLAB by Mohamed Hussein Lecture 5 Introduction to Matlab More on XY Plotting Other Types of Plotting 3D Plot (XYZ Plotting) More on XY Plotting Other XY plotting commands are axis ([xmin

More information

Introduction to MATLAB 7 for Engineers. Add for Chapter 2 Advanced Plotting and Model Building

Introduction to MATLAB 7 for Engineers. Add for Chapter 2 Advanced Plotting and Model Building Introduction to MATLAB 7 for Engineers Add for Chapter 2 Advanced Plotting and Model Building Nomenclature for a typical xy plot. The following MATLAB session plots y 0 4 1 8x for 0 x 52, where y represents

More information

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University.

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University. 2D Plots K. 1 1 Department of Mathematics 2015 Matplotlib The most used plotting API in Python is Matplotlib. Mimics Matlab s plotting capabilities Not identical plot() takes a variable number of arguments...

More information

Excel Tool: Plots of Data Sets

Excel Tool: Plots of Data Sets Excel Tool: Plots of Data Sets Excel makes it very easy for the scientist to visualize a data set. In this assignment, we learn how to produce various plots of data sets. Open a new Excel workbook, and

More information

Graphics. Chapter 3: Matlab graphics. Objectives. Types of plots

Graphics. Chapter 3: Matlab graphics. Objectives. Types of plots Graphics Chapter 3: Matlab graphics Objectives When you complete this chapter you will be able to use Matlab to: Create line plots, similar to an oscilloscope display Create multiple line plots in the

More information

PASS Sample Size Software. These options specify the characteristics of the lines, labels, and tick marks along the X and Y axes.

PASS Sample Size Software. These options specify the characteristics of the lines, labels, and tick marks along the X and Y axes. Chapter 940 Introduction This section describes the options that are available for the appearance of a scatter plot. A set of all these options can be stored as a template file which can be retrieved later.

More information

Engineering Department Professionalism: Graphing Standard

Engineering Department Professionalism: Graphing Standard Engineering Department Professionalism: Graphing Standard Introduction - A big part of an engineer s job is to communicate. This often involves presenting experimental or theoretical results in graphical

More information

Excel Lab 2: Plots of Data Sets

Excel Lab 2: Plots of Data Sets Excel Lab 2: Plots of Data Sets Excel makes it very easy for the scientist to visualize a data set. In this assignment, we learn how to produce various plots of data sets. Open a new Excel workbook, and

More information

Extrema Tutorial. Customizing Graph Presentation. Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work

Extrema Tutorial. Customizing Graph Presentation. Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work Extrema Tutorial Customizing Graph Presentation 16 O( 10 4 π +,π - π + ) Cohen et al. NP_A395(1983) Oset et al. NP_A454(1986) Rockmore PR_C27(1983) This work 10 3 10 2 10 1 180 200 220 240 260 280 300

More information

Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999

Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 Attia, John Okyere. Plotting Commands. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 1999 by CRC PRESS LLC CHAPTER TWO PLOTTING COMMANDS 2.1 GRAPH

More information

Step 1: Set up the variables AB Design. Use the top cells to label the variables that will be displayed on the X and Y axes of the graph

Step 1: Set up the variables AB Design. Use the top cells to label the variables that will be displayed on the X and Y axes of the graph Step 1: Set up the variables AB Design Use the top cells to label the variables that will be displayed on the X and Y axes of the graph Step 1: Set up the variables X axis for AB Design Enter X axis label

More information

Sensors and Scatterplots Activity Excel Worksheet

Sensors and Scatterplots Activity Excel Worksheet Name: Date: Sensors and Scatterplots Activity Excel Worksheet Directions Using our class datasheets, we will analyze additional scatterplots, using Microsoft Excel to make those plots. To get started,

More information

Introduction to Simulink Assignment Companion Document

Introduction to Simulink Assignment Companion Document Introduction to Simulink Assignment Companion Document Implementing a DSB-SC AM Modulator in Simulink The purpose of this exercise is to explore SIMULINK by implementing a DSB-SC AM modulator. DSB-SC AM

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, February 8

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, February 8 CS/NEUR125 Brains, Minds, and Machines Lab 2: Human Face Recognition and Holistic Processing Due: Wednesday, February 8 This lab explores our ability to recognize familiar and unfamiliar faces, and the

More information

GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB

GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB Contents 1 Preview: Programming & Experiments Goals 2 2 Homework Assignment 3 3 Measuring The

More information

IPython and Matplotlib

IPython and Matplotlib IPython and Matplotlib May 13, 2017 1 IPython and Matplotlib 1.1 Starting an IPython notebook $ ipython notebook After starting the notebook import numpy and matplotlib modules automagically. In [1]: %pylab

More information

Introduction to Matplotlib

Introduction to Matplotlib Lab 5 Introduction to Matplotlib Lab Objective: Matplotlib is the most commonly-used data visualization library in Python. Being able to visualize data helps to determine patterns, to communicate results,

More information

Creating Nice 2D-Diagrams

Creating Nice 2D-Diagrams UseCase.0046 Creating Nice 2D-Diagrams Keywords: 2D view, z=f(x,y), axis, axes, bitmap, mesh, contour, plot, font size, color lookup table, presentation Description This use case demonstrates how to configure

More information

Fungus Farmers LEAF CUTTING ANTS A C T I V I T Y. Activity Overview. How much leaf do leaf cutter ants chew?

Fungus Farmers LEAF CUTTING ANTS A C T I V I T Y. Activity Overview. How much leaf do leaf cutter ants chew? How much leaf do leaf cutter ants chew? Activity Overview Leaf cutting ants carry away leaf pieces that are up to 30 times their weight. They sometimes carry these pieces 100-200 meters (about 2 football

More information

MATHEMATICAL FUNCTIONS AND GRAPHS

MATHEMATICAL FUNCTIONS AND GRAPHS 1 MATHEMATICAL FUNCTIONS AND GRAPHS Objectives Learn how to enter formulae and create and edit graphs. Familiarize yourself with three classes of functions: linear, exponential, and power. Explore effects

More information

Universal Scale 4.0 Instruction Manual

Universal Scale 4.0 Instruction Manual Universal Scale 4.0 Instruction Manual Field Precision LLC 2D/3D finite-element software for electrostatics magnet design, microwave and pulsed-power systems, charged particle devices, thermal transport

More information

Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert

Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert Drawing Bode Plots (The Last Bode Plot You Will Ever Make) Charles Nippert This set of notes describes how to prepare a Bode plot using Mathcad. Follow these instructions to draw Bode plot for any transfer

More information

Math Labs. Activity 1: Rectangles and Rectangular Prisms Using Coordinates. Procedure

Math Labs. Activity 1: Rectangles and Rectangular Prisms Using Coordinates. Procedure Math Labs Activity 1: Rectangles and Rectangular Prisms Using Coordinates Problem Statement Use the Cartesian coordinate system to draw rectangle ABCD. Use an x-y-z coordinate system to draw a rectangular

More information

Lab #2 First Order RC Circuits Week of 27 January 2015

Lab #2 First Order RC Circuits Week of 27 January 2015 ECE214: Electrical Circuits Laboratory Lab #2 First Order RC Circuits Week of 27 January 2015 1 Introduction In this lab you will investigate the magnitude and phase shift that occurs in an RC circuit

More information

Chapter 2: Functions and Graphs Lesson Index & Summary

Chapter 2: Functions and Graphs Lesson Index & Summary Section 1: Relations and Graphs Cartesian coordinates Screen 2 Coordinate plane Screen 2 Domain of relation Screen 3 Graph of a relation Screen 3 Linear equation Screen 6 Ordered pairs Screen 1 Origin

More information

Contents. 1 Matlab basics How to start/exit Matlab Changing directory Matlab help... 2

Contents. 1 Matlab basics How to start/exit Matlab Changing directory Matlab help... 2 Contents 1 Matlab basics 2 1.1 How to start/exit Matlab............................ 2 1.2 Changing directory............................... 2 1.3 Matlab help................................... 2 2 Symbolic

More information

Plotting Graphs. CSC 121: Computer Science for Statistics. Radford M. Neal, University of Toronto, radford/csc121/

Plotting Graphs. CSC 121: Computer Science for Statistics. Radford M. Neal, University of Toronto, radford/csc121/ CSC 121: Computer Science for Statistics Sourced from: Radford M. Neal, University of Toronto, 2017 http://www.cs.utoronto.ca/ radford/csc121/ Plotting Graphs Week 9 Creating a Plot in Stages Many simple

More information

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Importing Data into MATLAB Change your Current Folder to the folder where your data is located. Import

More information

Experiment 1 Introduction to MATLAB and Simulink

Experiment 1 Introduction to MATLAB and Simulink Experiment 1 Introduction to MATLAB and Simulink INTRODUCTION MATLAB s Simulink is a powerful modeling tool capable of simulating complex digital communications systems under realistic conditions. It includes

More information

This tutorial will lead you through step-by-step to make the plot below using Excel.

This tutorial will lead you through step-by-step to make the plot below using Excel. GES 131 Making Plots with Excel 1 / 6 This tutorial will lead you through step-by-step to make the plot below using Excel. Number of Non-Student Tickets vs. Student Tickets Y, Number of Non-Student Tickets

More information

Tutorial 2: Setting up the Drawing Environment

Tutorial 2: Setting up the Drawing Environment Drawing size With AutoCAD all drawings are done to FULL SCALE. The drawing limits will depend on the size of the items being drawn. For example if our drawing is the plan of a floor 23.8m X 15m then we

More information

1 Running the Program

1 Running the Program GNUbik Copyright c 1998,2003 John Darrington 2004 John Darrington, Dale Mellor Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission

More information

Complex Numbers in Electronics

Complex Numbers in Electronics P5 Computing, Extra Practice After Session 1 Complex Numbers in Electronics You would expect the square root of negative numbers, known as complex numbers, to be only of interest to pure mathematicians.

More information

Outline. Drawing the Graph. 1 Homework Review. 2 Introduction. 3 Histograms. 4 Histograms on the TI Assignment

Outline. Drawing the Graph. 1 Homework Review. 2 Introduction. 3 Histograms. 4 Histograms on the TI Assignment Lecture 14 Section 4.4.4 on Hampden-Sydney College Fri, Sep 18, 2009 Outline 1 on 2 3 4 on 5 6 Even-numbered on Exercise 4.25, p. 249. The following is a list of homework scores for two students: Student

More information

Lecture 1: Introduction to Matlab Programming

Lecture 1: Introduction to Matlab Programming What is Matlab? Lecture 1: Introduction to Matlab Programming Math 490 Prof. Todd Wittman The Citadel Matlab stands for. Matlab is a programming language optimized for linear algebra operations. It is

More information

How to define Graph in HDSME

How to define Graph in HDSME How to define Graph in HDSME HDSME provides several chart/graph options to let you analyze your business in a visual format (2D and 3D). A chart/graph can display a summary of sales, profit, or current

More information

A graph is an effective way to show a trend in data or relating two variables in an experiment.

A graph is an effective way to show a trend in data or relating two variables in an experiment. Chem 111-Packet GRAPHING A graph is an effective way to show a trend in data or relating two variables in an experiment. Consider the following data for exercises #1 and 2 given below. Temperature, ºC

More information

Introduction to the Graphing Calculator for the TI-86

Introduction to the Graphing Calculator for the TI-86 Algebra 090 ~ Lecture Introduction to the Graphing Calculator for the TI-86 Copyright 1996 Sally J. Glover All Rights Reserved Grab your calculator and follow along. Note: BOLD FACE are used for calculator

More information

The 21 st Century Wireless Classroom Network for AP Calculus

The 21 st Century Wireless Classroom Network for AP Calculus The 21 st Century Wireless Classroom Network for AP Calculus In this exploratory hands-on workshop, we will be solving Calculus problems with the HP Prime Graphing Calculator and the HP Wireless Classroom

More information

The Formula for Sinusoidal Signals

The Formula for Sinusoidal Signals The Formula for I The general formula for a sinusoidal signal is x(t) =A cos(2pft + f). I A, f, and f are parameters that characterize the sinusoidal sinal. I A - Amplitude: determines the height of the

More information

Spreadsheets 3: Charts and Graphs

Spreadsheets 3: Charts and Graphs Spreadsheets 3: Charts and Graphs Name: Main: When you have finished this handout, you should have the following skills: Setting up data correctly Labeling axes, legend, scale, title Editing symbols, colors,

More information

GEO/EVS 425/525 Unit 2 Composing a Map in Final Form

GEO/EVS 425/525 Unit 2 Composing a Map in Final Form GEO/EVS 425/525 Unit 2 Composing a Map in Final Form The Map Composer is the main mechanism by which the final drafts of images are sent to the printer. Its use requires that images be readable within

More information

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Spring 2018 What to Turn In: ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Dr. Havlicek Submit your solution for this assignment electronically on Canvas by uploading a file to ECE-2713-001 > Assignments

More information

Physics 253 Fundamental Physics Mechanic, September 9, Lab #2 Plotting with Excel: The Air Slide

Physics 253 Fundamental Physics Mechanic, September 9, Lab #2 Plotting with Excel: The Air Slide 1 NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT Physics 253 Fundamental Physics Mechanic, September 9, 2010 Lab #2 Plotting with Excel: The Air Slide Lab Write-up Due: Thurs., September 16, 2010 Place

More information

Computer Tools for Data Acquisition

Computer Tools for Data Acquisition Computer Tools for Data Acquisition Introduction to Capstone You will be using a computer to assist in taking and analyzing data throughout this course. The software, called Capstone, is made specifically

More information

New Sketch Editing/Adding

New Sketch Editing/Adding New Sketch Editing/Adding 1. 2. 3. 4. 5. 6. 1. This button will bring the entire sketch to view in the window, which is the Default display. This is used to return to a view of the entire sketch after

More information

Brief Introduction to Vision and Images

Brief Introduction to Vision and Images Brief Introduction to Vision and Images Charles S. Tritt, Ph.D. January 24, 2012 Version 1.1 Structure of the Retina There is only one kind of rod. Rods are very sensitive and used mainly in dim light.

More information

Appendix 3 - Using A Spreadsheet for Data Analysis

Appendix 3 - Using A Spreadsheet for Data Analysis 105 Linear Regression - an Overview Appendix 3 - Using A Spreadsheet for Data Analysis Scientists often choose to seek linear relationships, because they are easiest to understand and to analyze. But,

More information

Phasor. Phasor Diagram of a Sinusoidal Waveform

Phasor. Phasor Diagram of a Sinusoidal Waveform Phasor A phasor is a vector that has an arrow head at one end which signifies partly the maximum value of the vector quantity ( V or I ) and partly the end of the vector that rotates. Generally, vectors

More information

How to Make a Run Chart in Excel

How to Make a Run Chart in Excel How to Make a Run Chart in Excel While there are some statistical programs that you can use to make a run chart, it is simple to make in Excel, using Excel s built-in chart functions. The following are

More information

Applications of Derivatives

Applications of Derivatives Chapter 5 Analyzing Change: Applications of Derivatives 5.2 Relative and Absolute Extreme Points Your calculator can be very helpful for checking your analytic work when you find optimal points and points

More information

1. Start with scatter plot: 2. Find corner points. 3. Capture image. 4. Corners

1. Start with scatter plot: 2. Find corner points. 3. Capture image. 4. Corners 1. Start with scatter plot: 2. Find corner points Easiest way to insert picture properly in GeoGebra is to have corner points. We see that: bottom corner is (2,10) top corner is (9,21) 3. Capture image

More information

Data Analysis Part 1: Excel, Log-log, & Semi-log plots

Data Analysis Part 1: Excel, Log-log, & Semi-log plots Data Analysis Part 1: Excel, Log-log, & Semi-log plots Why Excel is useful Excel is a powerful tool used across engineering fields. Organizing data Multiple types: date, text, numbers, currency, etc Sorting

More information

Objectives. Materials

Objectives. Materials . Objectives Activity 8 To plot a mathematical relationship that defines a spiral To use technology to create a spiral similar to that found in a snail To use technology to plot a set of ordered pairs

More information

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill Engineering 3821 Fall 2003 Pspice TUTORIAL 1 Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill 2 INTRODUCTION The PSpice program is a member of the SPICE (Simulation Program with Integrated Circuit

More information

Laboratory 2: Graphing

Laboratory 2: Graphing Purpose It is often said that a picture is worth 1,000 words, or for scientists we might rephrase it to say that a graph is worth 1,000 words. Graphs are most often used to express data in a clear, concise

More information

John Perry. Fall 2009

John Perry. Fall 2009 MAT 305: Lecture 2: 2-D Graphing in Sage University of Southern Mississippi Fall 2009 Outline 1 2 3 4 5 6 You should be in worksheet mode to repeat the examples. Outline 1 2 3 4 5 6 The point() command

More information

ECE 2713 Homework Matlab code:

ECE 2713 Homework Matlab code: ECE 7 Homework 7 Spring 8 Dr. Havlicek. Matlab code: -------------------------------------------------------- P - Create and plot the signal x_[n] as a function of n. - Compute the DFT X_[k]. Plot the

More information

THE SINUSOIDAL WAVEFORM

THE SINUSOIDAL WAVEFORM Chapter 11 THE SINUSOIDAL WAVEFORM The sinusoidal waveform or sine wave is the fundamental type of alternating current (ac) and alternating voltage. It is also referred to as a sinusoidal wave or, simply,

More information

PASS Sample Size Software

PASS Sample Size Software Chapter 945 Introduction This section describes the options that are available for the appearance of a histogram. A set of all these options can be stored as a template file which can be retrieved later.

More information

User s Manual ❿ Drawings-Detailing

User s Manual ❿ Drawings-Detailing User s Manual ❿ Drawings-Detailing 2 CONTENTS I. THE NEW UPGRADED INTERFACE of SCADA Pro 4 1. UNITS 5 1.1 Drawings-Detailing 5 I. Files 6 II. Drawing 25 III. Formworks 30 IV. Edit 45 V. View 58 VI. Layers

More information

Study of Analog Phase-Locked Loop (APLL)

Study of Analog Phase-Locked Loop (APLL) Laboratory Exercise 9. (Last updated: 18/1/013, Tamás Krébesz) Study of Analog Phase-Locked Loop (APLL) Required knowledge Operation principle of analog phase-locked-loop (APLL) Operation principle of

More information

Appendix C Transporting Figures

Appendix C Transporting Figures Appendix C Transporting Figures Overview: Almost every laboratory report needs figures of some sort. These may be needed to describe an experimental apparatus, the schematic of a system to be tested, graphs

More information

The version 2.0 of Solve Elec allow you to study circuits in direct current.

The version 2.0 of Solve Elec allow you to study circuits in direct current. Introduction Fonctionalities With Solve Elec you can : - draw a circuit - modify the properties of circuit components - define quantities related to the circuit by theirs formulas - see the circuit solution

More information

ELEC MatLab Introductory Lab. Performed: Monday January 20 th Submitted: Monday January 27 th 2014

ELEC MatLab Introductory Lab. Performed: Monday January 20 th Submitted: Monday January 27 th 2014 ELEC 1908 MatLab Introductory Lab Performed: Monday January 20 th 2014 Submitted: Monday January 27 th 2014 Performed By Name, Student # Name, Student # Teaching Assistant Svetlana Demptchenko Introduction

More information

Chapter 3, Part 1: Intro to the Trigonometric Functions

Chapter 3, Part 1: Intro to the Trigonometric Functions Haberman MTH 11 Section I: The Trigonometric Functions Chapter 3, Part 1: Intro to the Trigonometric Functions In Example 4 in Section I: Chapter, we observed that a circle rotating about its center (i.e.,

More information

Name Period Date LINEAR FUNCTIONS STUDENT PACKET 5: INTRODUCTION TO LINEAR FUNCTIONS

Name Period Date LINEAR FUNCTIONS STUDENT PACKET 5: INTRODUCTION TO LINEAR FUNCTIONS Name Period Date LF5.1 Slope-Intercept Form Graph lines. Interpret the slope of the graph of a line. Find equations of lines. Use similar triangles to explain why the slope m is the same between any two

More information

Appendix III Graphs in the Introductory Physics Laboratory

Appendix III Graphs in the Introductory Physics Laboratory Appendix III Graphs in the Introductory Physics Laboratory 1. Introduction One of the purposes of the introductory physics laboratory is to train the student in the presentation and analysis of experimental

More information

Lab 3: Very Brief Introduction to Micro-Cap SPICE

Lab 3: Very Brief Introduction to Micro-Cap SPICE Lab 3: Very Brief Introduction to Micro-Cap SPICE Starting Micro-Cap SPICE Micro-Cap SPICE is available on CoE machines under the Spectrum Software menu: Programs Spectrum Software Micro-Cap 10 Evaluation

More information

PANalytical X pert Pro Gazing Incidence X-ray Reflectivity User Manual (Version: )

PANalytical X pert Pro Gazing Incidence X-ray Reflectivity User Manual (Version: ) University of Minnesota College of Science and Engineering Characterization Facility PANalytical X pert Pro Gazing Incidence X-ray Reflectivity User Manual (Version: 2012.10.17) The following instructions

More information

Do You See What I See?

Do You See What I See? Concept Geometry and measurement Activity 5 Skill Calculator skills: coordinate graphing, creating lists, ' Do You See What I See? Students will discover how pictures formed by graphing ordered pairs can

More information

Graphs of sin x and cos x

Graphs of sin x and cos x Graphs of sin x and cos x One cycle of the graph of sin x, for values of x between 0 and 60, is given below. 1 0 90 180 270 60 1 It is this same shape that one gets between 60 and below). 720 and between

More information

Class #16: Experiment Matlab and Data Analysis

Class #16: Experiment Matlab and Data Analysis Class #16: Experiment Matlab and Data Analysis Purpose: The objective of this experiment is to add to our Matlab skill set so that data can be easily plotted and analyzed with simple tools. Background:

More information

EXERCISE 1: CREATE LINE SPARKLINES

EXERCISE 1: CREATE LINE SPARKLINES EXERCISE 1: CREATE LINE SPARKLINES In this exercise you ll create line sparklines. Then you ll convert the line type to the column type. Part 1: Create the sparklines Before you start, notice that the

More information

Creating a foldable for Equations of Lines

Creating a foldable for Equations of Lines Creating a foldable for Equations of Lines Equations of Lines Slope Direct Variation Slope-Intercept Form Standard Form Point-Slope Form Equation w/ slope & 1 point Equation w/ 2 points Horizontal & Vertical

More information

Engineering Fundamentals and Problem Solving, 6e

Engineering Fundamentals and Problem Solving, 6e Engineering Fundamentals and Problem Solving, 6e Chapter 5 Representation of Technical Information Chapter Objectives 1. Recognize the importance of collecting, recording, plotting, and interpreting technical

More information

Agilent EEsof EDA.

Agilent EEsof EDA. Agilent EEsof EDA This document is owned by Agilent Technologies, but is no longer kept current and may contain obsolete or inaccurate references. We regret any inconvenience this may cause. For the latest

More information

2 a Shade one more square to make a pattern with just one line of symmetry.

2 a Shade one more square to make a pattern with just one line of symmetry. GM2 End-of-unit Test Rotate the shape 80 about point P. P 2 a Shade one more square to make a pattern with just one line of symmetry. b Shade one more square to make a pattern with rotational symmetry

More information

Chapter 9 Linear equations/graphing. 1) Be able to graph points on coordinate plane 2) Determine the quadrant for a point on coordinate plane

Chapter 9 Linear equations/graphing. 1) Be able to graph points on coordinate plane 2) Determine the quadrant for a point on coordinate plane Chapter 9 Linear equations/graphing 1) Be able to graph points on coordinate plane 2) Determine the quadrant for a point on coordinate plane Rectangular Coordinate System Quadrant II (-,+) y-axis Quadrant

More information

Making Standard Note Blocks and Placing the Bracket in a Drawing Border

Making Standard Note Blocks and Placing the Bracket in a Drawing Border C h a p t e r 12 Making Standard Note Blocks and Placing the Bracket in a Drawing Border In this chapter, you will learn the following to World Class standards: Making standard mechanical notes Using the

More information

Functions Modeling Change A Preparation for Calculus Third Edition

Functions Modeling Change A Preparation for Calculus Third Edition Powerpoint slides copied from or based upon: Functions Modeling Change A Preparation for Calculus Third Edition Connally, Hughes-Hallett, Gleason, Et Al. Copyright 2007 John Wiley & Sons, Inc. 1 CHAPTER

More information

We are going to begin a study of beadwork. You will be able to create beadwork on the computer using the culturally situated design tools.

We are going to begin a study of beadwork. You will be able to create beadwork on the computer using the culturally situated design tools. Bead Loom Questions We are going to begin a study of beadwork. You will be able to create beadwork on the computer using the culturally situated design tools. Read the first page and then click on continue

More information

AutoCAD 2D I. Module 16. Isometric and Dimensioning. IAT Curriculum Unit PREPARED BY. January 2011

AutoCAD 2D I. Module 16. Isometric and Dimensioning. IAT Curriculum Unit PREPARED BY. January 2011 AutoCAD 2D I Module 16 Isometric and Dimensioning PREPARED BY IAT Curriculum Unit January 2011 Institute of Applied Technology, 2011 Module 16 Auto CAD Self-paced Learning Modules AutoCAD 2D Isometric

More information