MATLAB Laboratory 09/23/10 Lecture. Chapters 5 and 9: Plotting

Size: px
Start display at page:

Download "MATLAB Laboratory 09/23/10 Lecture. Chapters 5 and 9: Plotting"

Transcription

1 MATLAB Laboratory 09/23/10 Lecture Chapters 5 and 9: Plotting Lisa A. Oberbroeckling Loyola University Maryland loberbroeckling@loyola.edu L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 1 / 21

2 Examples of Plots used in Lectures 5 4 y=1/x y= 2x L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 2 / 21

3 Examples of Plots used in Lectures x=2y y x=y 2 6y L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 3 / 21

4 Examples of Plots used in Lectures z y x L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 4 / 21

5 Examples of Plots used in Lectures Example z y 5 5 x L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 5 / 21

6 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

7 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

8 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

9 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), plot3(x,y,z), L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

10 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), plot3(x,y,z), surf(x,y,z), L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

11 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), plot3(x,y,z), surf(x,y,z), mesh(x,y,z). L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

12 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), plot3(x,y,z), surf(x,y,z), mesh(x,y,z). Useful command: clf: clears the current figure L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

13 Plots Where linspace(0,2*pi) or 0:pi/60:2*pi (for example) comes in handy! Also where dot operations are needed Look at plotex# m-files on the H-drive Basic commands: plot(x,y), plot3(x,y,z), surf(x,y,z), mesh(x,y,z). Useful command: clf: clears the current figure There are other ways to plot, like using fplot or ezplot L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 6 / 21

14 Plotting Plot commands basically connect-the-dots and you have to tell MATLAB which dots to connect, and how to connect them. L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 7 / 21

15 Plotting Plot commands basically connect-the-dots and you have to tell MATLAB which dots to connect, and how to connect them. Thus you have more control, so can make parametric plots, or plots with x as a function of y, much easier than on graphing calculators or other packages. L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 7 / 21

16 Plotting Plot commands basically connect-the-dots and you have to tell MATLAB which dots to connect, and how to connect them. Thus you have more control, so can make parametric plots, or plots with x as a function of y, much easier than on graphing calculators or other packages L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 7 / 21

17 Basic Plot Basic example: plotex1a.m x=-2:2; plot(x,x.^2) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 8 / 21

18 Basic Plot Basic example: plotex1a.m x=-2:2; plot(x,x.^2) What s wrong with this plot? L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 8 / 21

19 Basic Plot Basic example: plotex1a.m x=-2:2; plot(x,x.^2) What s wrong with this plot? Look at plotex1av2.m for better ways to define x L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 8 / 21

20 Formatting Plots Line Specifiers (pages ): LineStyle LineColor MarkerType More formatting in Chapter 5: LineWidth, MarkerSize, etc. Look up and experiment with the different types! L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 9 / 21

21 More formatting Good commands axis L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

22 More formatting Good commands axis grid L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

23 More formatting Good commands axis grid xlabel, etc. L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

24 More formatting Good commands axis grid xlabel, etc. xlim, etc. L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

25 More formatting Good commands axis grid xlabel, etc. xlim, etc. title L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

26 More formatting Good commands axis grid xlabel, etc. xlim, etc. title text L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

27 More formatting Good commands axis grid xlabel, etc. xlim, etc. title text legend L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 10 / 21

28 3D Plots To plot a space curve L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 11 / 21

29 3D Plots To plot a space curve Example r(t) = (3 cos t, 3 sin t, t) plot3(x,y,z) with x, y, z already defined as in 2D plots OR plot3(x,y,z, line specifiers, Property Name, prop values) Look at plotex3a.m L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 11 / 21

30 3D Plots (mesh/surface/contour, etc.) To plot z = f(x, y), 4 main steps 1 establish the domain for x and y L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 12 / 21

31 3D Plots (mesh/surface/contour, etc.) To plot z = f(x, y), 4 main steps 1 establish the domain for x and y 2 create grid in xy-plane L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 12 / 21

32 3D Plots (mesh/surface/contour, etc.) To plot z = f(x, y), 4 main steps 1 establish the domain for x and y 2 create grid in xy-plane 3 calculate z (z is calculated for each point in grid ) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 12 / 21

33 3D Plots (mesh/surface/contour, etc.) To plot z = f(x, y), 4 main steps 1 establish the domain for x and y 2 create grid in xy-plane 3 calculate z (z is calculated for each point in grid ) 4 make the mesh, surface plots, etc. L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 12 / 21

34 Creating the grid using meshgrid Example Domain is 1 x 3, 1 y 4 L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 13 / 21

35 Creating the grid using meshgrid Example Domain is 1 x 3, 1 y 4 u = -1:3; v = 1:4; [x, y] = meshgrid(u,v) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 13 / 21

36 Creating the grid using meshgrid Example Domain is 1 x 3, 1 y 4 u = -1:3; v = 1:4; [x, y] = meshgrid(u,v) (can use whatever letters, names you want) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 13 / 21

37 Creating the grid using meshgrid Example Domain is 1 x 3, 1 y 4 u = -1:3; v = 1:4; [x, y] = meshgrid(u,v) (can use whatever letters, names you want) [x, y] are matrices of the x and y coords, respectively L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 13 / 21

38 Creating the grid using meshgrid Example Domain is 1 x 3, 1 y 4 u = -1:3; v = 1:4; [x, y] = meshgrid(u,v) (can use whatever letters, names you want) [x, y] are matrices of the x and y coords, respectively (u,v) are the vectors for the domain of x and y (created through linspace, etc) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 13 / 21

39 Calculating z If you have already created a meshgrid using above example and letters and want to graph z = 3xy2 + 2 x 2 + y 2 L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 14 / 21

40 Calculating z If you have already created a meshgrid using above example and letters and want to graph z = 3xy2 + 2 x 2 + y 2 z = (3*x.*y.^2+2)./(x.^2 + y.^2); L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 14 / 21

41 Calculating z If you have already created a meshgrid using above example and letters and want to graph z = 3xy2 + 2 x 2 + y 2 z = (3*x.*y.^2+2)./(x.^2 + y.^2); Then can use mesh(x,y,z) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 14 / 21

42 Calculating z If you have already created a meshgrid using above example and letters and want to graph z = 3xy2 + 2 x 2 + y 2 z = (3*x.*y.^2+2)./(x.^2 + y.^2); Then can use mesh(x,y,z) OR surf(x,y,z) (Those are the most common... there are others listed in the book) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 14 / 21

43 Making the plots Good: xlabel( x ); ylabel( y ); zlabel( z ); title( title text ) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 15 / 21

44 Making the plots Good: xlabel( x ); ylabel( y ); zlabel( z ); title( title text ) Notice the look: maybe should have had u = linspace(-1,3); v = linspace(1,4); L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 15 / 21

45 Making the plots Good: xlabel( x ); ylabel( y ); zlabel( z ); title( title text ) Notice the look: maybe should have had u = linspace(-1,3); v = linspace(1,4); Different plots mesh, surf meshz, meshc surfc, surfl waterfall contour, contour3 L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 15 / 21

46 View command view(az,el) OR view([az, el]) az = azimuth: angle (in degrees) in xy-plane measured relative to negative y-axis in COUNTERCLOCKWISE direction el = elevation: elevation angle (in degrees) from xy-plane L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 16 / 21

47 View command view(az,el) OR view([az, el]) az = azimuth: angle (in degrees) in xy-plane measured relative to negative y-axis in COUNTERCLOCKWISE direction el = elevation: elevation angle (in degrees) from xy-plane DEFAULT: az = 37.5, el = 30 L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 16 / 21

48 View command view(az,el) OR view([az, el]) az = azimuth: angle (in degrees) in xy-plane measured relative to negative y-axis in COUNTERCLOCKWISE direction el = elevation: elevation angle (in degrees) from xy-plane DEFAULT: az = 37.5, el = 30 projection plane az el xy (top) 0 90 xz (side) 0 0 yz (side) 90 0 L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 16 / 21

49 Contour Plots If want to create contour lines: contour(z,n) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 17 / 21

50 Contour Plots If want to create contour lines: contour(z,n) n is the number of lines/levels you want L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 17 / 21

51 Contour Plots If want to create contour lines: contour(z,n) n is the number of lines/levels you want or contour3(z,n) or contourf(z,n) L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 17 / 21

52 Contour Plots If want to create contour lines: contour(z,n) n is the number of lines/levels you want or contour3(z,n) or contourf(z,n) If you want the levels to be labeled: [c, h] = contour(z, n); clabel(c, h); MATLAB help: Contour plots... labeling L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 17 / 21

53 Basic Plot Examples plotex1a.m: Basic example plotex1b.m: Basic fplot example plotex1c.m: Lots of command examples to format plot L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 18 / 21

54 Multiple Plot Examples plotex2a.m: Basic multiple plot example plotex2b.m: Using Line Specifiers plotex2c.m: Example of hold on, legends, etc. plotex2d.m: Using fplot and adding points plotex2e.m: More formatting, and adding manual axes L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 19 / 21

55 Using subplot plotex2f.m: Example of subplot using fplot plotex2g.m: Example where plot goes across cells plotex2h.m: Adding titles to subplots plotex2i.m: Example of subplot using plot and formatting the file for better viewing and editing L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 20 / 21

56 3D Plot Examples plotex3a.m: Space curve examples plotex3b.m: 3D surface (and mesh) examples L. Oberbroeckling (Loyola University) MATLAB 09/23/10 Lecture 21 / 21

MATH 2221A Mathematics Laboratory II

MATH 2221A Mathematics Laboratory II MATH A Mathematics Laboratory II Lab Assignment 4 Name: Student ID.: In this assignment, you are asked to run MATLAB demos to see MATLAB at work. The color version of this assignment can be found in your

More information

Mechanical Engineering Department Second Year (2015)

Mechanical Engineering Department Second Year (2015) Lecture 7: Graphs Basic Plotting MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. This section describes a few of the most

More information

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

More information

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

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

More information

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

INTERNATIONAL EDITION. MATLAB for Engineers. Third Edition. Holly Moore

INTERNATIONAL EDITION. MATLAB for Engineers. Third Edition. Holly Moore INTERNATIONAL EDITION MATLAB for Engineers Third Edition Holly Moore 5.4 Three-Dimensional Plotting Figure 5.8 Simple mesh created with a single two-dimensional matrix. 5 5 Element,5 5 The code mesh(z)

More information

Introduction to MATLAB: Graphics

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

More information

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

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

More information

Graphics in MATLAB. Responsible teacher: Anatoliy Malyarenko. November 10, Abstract. Basic Plotting Commands

Graphics in MATLAB. Responsible teacher: Anatoliy Malyarenko. November 10, Abstract. Basic Plotting Commands Graphics in MATLAB Responsible teacher: Anatoliy Malyarenko November 10, 2003 Contents of the lecture: Two-dimensional graphics. Formatting graphs. Three-dimensional graphics. Specialised plots. Abstract

More information

GRAPHICS AND VISUALISATION WITH MATLAB

GRAPHICS AND VISUALISATION WITH MATLAB GRAPHICS AND VISUALISATION WITH MATLAB UNIVERSITY OF SHEFFIELD CiCS DEPARTMENT Des Ryan & Mike Griffiths September 2017 Topics 2D Graphics 3D Graphics Displaying Bit-Mapped Images Graphics with Matlab

More information

1 >> Lecture 4 2 >> 3 >> -- Graphics 4 >> Zheng-Liang Lu 184 / 243

1 >> Lecture 4 2 >> 3 >> -- Graphics 4 >> Zheng-Liang Lu 184 / 243 1 >> Lecture 4 >> 3 >> -- Graphics 4 >> Zheng-Liang Lu 184 / 43 Introduction ˆ Engineers use graphic techniques to make the information easier to understand. ˆ With graphs, it is easy to identify trends,

More information

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

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

More information

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations

What is MATLAB? It is a high-level programming language. for numerical computations for symbolic computations for scientific visualizations What is MATLAB? It stands for MATrix LABoratory It is developed by The Mathworks, Inc (http://www.mathworks.com) It is an interactive, integrated, environment for numerical computations for symbolic computations

More information

3D plot of a surface in Matlab

3D plot of a surface in Matlab 3D plot of a surface in Matlab 3D plot of a surface in Matlab Create a surface of function mesh Graphics 3-D line plot Graphics 3-D contour plot Draw contours in volume slice planes For 3-D shaded surface

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

PROGRAMMING WITH MATLAB WEEK 6

PROGRAMMING WITH MATLAB WEEK 6 PROGRAMMING WITH MATLAB WEEK 6 Plot: Syntax: plot(x, y, r.- ) Color Marker Linestyle The line color, marker style and line style can be changed by adding a string argument. to select and delete lines

More information

Lecture 3 for Math 398 Section 952: Graphics in Matlab

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

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

EGR 102 Introduction to Engineering Modeling. Lab 05B Plotting

EGR 102 Introduction to Engineering Modeling. Lab 05B Plotting EGR 102 Introduction to Engineering Modeling Lab 05B Plotting 1 Overview Plotting in MATLAB 2D plotting ( ezplot(), fplot(), plot()) Formatting of 2D plots 3D plotting (surf(), mesh(), plot3()) Formatting

More information

Part #6. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr

Part #6. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr A0B17MTB Matlab Part #6 Miloslav Čapek miloslav.capek@fel.cvut.cz Filip Kozák, Viktor Adler, Pavel Valtr Department of Electromagnetic Field B2-626, Prague Learning how to Visualizing in Matlab #1 Debugging

More information

FF505/FY505 Computational Science. MATLAB Graphics. Marco Chiarandini

FF505/FY505 Computational Science. MATLAB Graphics. Marco Chiarandini FF505/FY505 Computational Science MATLAB Marco Chiarandini (marco@imada.sdu.dk) Department of Mathematics and Computer Science (IMADA) University of Southern Denmark Outline 1. 2D Plots 3D Plots 2 Outline

More information

Lab 6: Graphical Methods

Lab 6: Graphical Methods Lab 6: Graphical Methods 6.1 Introduction EGR 53L - Fall 2009 Lab this week is going to introduce graphical solution and presentation techniques as well as surface plots. 6.2 Resources The additional resources

More information

CSE 123. Plots in MATLAB

CSE 123. Plots in MATLAB CSE 123 Plots in MATLAB Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots the expression fun(x) over the default domain -2pi

More information

Introduction to Matlab for Engineers

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

More information

Chapter 8 Complex Numbers & 3-D Plots

Chapter 8 Complex Numbers & 3-D Plots EGR115 Introduction to Computing for Engineers Complex Numbers & 3-D Plots from: S.J. Chapman, MATLAB Programming for Engineers, 5 th Ed. 2016 Cengage Learning Topics Introduction: Complex Numbers & 3-D

More information

Computing Fundamentals Plotting

Computing Fundamentals Plotting Computing Fundamentals Plotting Salvatore Filippone salvatore.filippone@uniroma2.it 2014 2015 (salvatore.filippone@uniroma2.it) Plotting 2014 2015 1 / 14 Plot function The basic function to plot something

More information

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

More information

Plotting - Practice session

Plotting - Practice session Plotting - Practice session Alessandro Fanfarillo - Salvatore Filippone fanfarillo@ing.uniroma2.it May 28th, 2013 (fanfarillo@ing.uniroma2.it) Plotting May 28th, 2013 1 / 14 Plot function The basic function

More information

Introduction to MATLAB

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

More information

Introduction to graphics

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

More information

Basic Graphs. Dmitry Adamskiy 16 November 2011

Basic Graphs. Dmitry Adamskiy 16 November 2011 Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken

More information

Plotting using Matlab. Vytautas Astromskas

Plotting using Matlab. Vytautas Astromskas Plotting using Matlab Vytautas Astromskas Contents 1 Manipulating a plot using GUI 2 2 Manipulating a plot using command line 4 3 Adding multiple lines to the same plot 5 4 Logarithmic axes 6 5 Plotting

More information

ELEC6021 Research Methods Matlab Session 2

ELEC6021 Research Methods Matlab Session 2 ELEC6021 Research Methods Matlab Session 2 In the first session, we looked at how to write our own Matlab functions, among other things. This session poses a number of problems and asks you to write Matlab

More information

SGN Introduction to Matlab

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;

More information

By Edward Grossman Edited and Updated by Mark Turner

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

More information

Dr. Iyad Jafar. Adapted from the publisher slides

Dr. Iyad Jafar. Adapted from the publisher slides Computer Applications Lab Lab 6 Plotting Chapter 5 Sections 1,2,3,8 Dr. Iyad Jafar Adapted from the publisher slides Outline xy Plotting Functions Subplots Special Plot Types Three-Dimensional Plotting

More information

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command...

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... Contents 2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... 9 2D LINE PLOTS One of the benefits of programming in MATLAB

More information

ENGG1811 Computing for Engineers Week 11 Part C Matlab: 2D and 3D plots

ENGG1811 Computing for Engineers Week 11 Part C Matlab: 2D and 3D plots ENGG1811 Computing for Engineers Week 11 Part C Matlab: 2D and 3D plots ENGG1811 UNSW, CRICOS Provider No: 00098G1 W11 slide 1 More on plotting Matlab has a lot of plotting features Won t go through them

More information

The College of Staten Island

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

More information

The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development

The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Chapter 7 Graphics Learning outcomes Label your plots Create different

More information

Plotting x-y (2D) and x, y, z (3D) graphs

Plotting x-y (2D) and x, y, z (3D) graphs Tutorial : 5 Date : 9/08/2016 Plotting x-y (2D) and x, y, z (3D) graphs Aim To learn to produce simple 2-Dimensional x-y and 3-Dimensional (x, y, z) graphs using SCILAB. Exercises: 1. Generate a 2D plot

More information

PASS Sample Size Software

PASS Sample Size Software Chapter 941 Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 2 input parameters vary, you can create stunning 3D power

More information

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. PC-MATLAB PRIMER This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. >> 2*3 ans = 6 PCMATLAB uses several lines for the answer, but I ve edited this to save space.

More information

MATLAB Guide to Fibonacci Numbers

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

More information

A very brief Matlab introduction

A very brief Matlab introduction A very brief Matlab introduction Siniša Krajnović January 24, 2006 This is a very brief introduction to Matlab and its purpose is only to introduce students of the CFD course into Matlab. After reading

More information

Lecture 6: Plotting in MATLAB

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

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Violeta Ivanova, Ph.D. Office for Educational Innovation & Technology violeta@mit.edu http://web.mit.edu/violeta/www Topics MATLAB Interface and Basics Calculus, Linear Algebra,

More information

3D Surface Plots with Groups

3D Surface Plots with Groups Chapter 942 3D Surface Plots with Groups Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 3 input parameters vary, you

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

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

More information

Homework Set #2-3, Math 475B

Homework Set #2-3, Math 475B Homework Set #2-3, Math 475B Part I: Matlab In the last semester you learned a number of essential features of MATLAB. 1. In this instance, you will learn to make 3D plots and contour plots of z = f(x,

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to.

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to. Starting Matlab Go to MATLAB Laboratory 09/09/10 Lecture Lisa A. Oberbroeckling Loyola University Maryland loberbroeckling@loyola.edu http://ctx.loyola.edu and login with your Loyola name and password...

More information

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

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

More information

MATLAB. Input/Output. CS101 lec

MATLAB. Input/Output. CS101 lec MATLAB CS101 lec24 Input/Output 2018-04-18 MATLAB Review MATLAB Review Question ( 1 2 3 4 5 6 ) How do we access 6 in this array? A A(2,1) B A(1,2) C A(3,2) D A(2,3) MATLAB Review Question ( 1 2 3 4 5

More information

Introduction to Programming in MATLAB

Introduction to Programming in MATLAB Introduction to Programming in MATLAB User-defined Functions Functions look exactly like scripts, but for ONE difference Functions must have a function declaration Help file Function declaration Outputs

More information

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane. Math 21a Tangent Lines and Planes Fall, 2016 What do we know about the gradient f? Tangent Lines to Curves in the Plane. 1. For each of the following curves, find the tangent line to the curve at the point

More information

DATA PLOTTING WITH MATLAB

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

More information

AMS 27L LAB #2 Winter 2009

AMS 27L LAB #2 Winter 2009 AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles

More information

MATLAB basic guide to create 2D and 3D Plots. Part I Introduction

MATLAB basic guide to create 2D and 3D Plots. Part I Introduction MATLAB basic guide to create 2D and 3D Plots Part I Introduction This guide will walk you through the steps necessary to create, using MATLAB, a Three dimensional surface, a Two dimensional contour plot

More information

A Quick Guide to MATLAB

A Quick Guide to MATLAB Appendix C A Quick Guide to MATLAB In this course we will be using the software package MATLAB. The most recent version can be purchased directly from the MATLAB web site: http://www.mathworks.com/academia/student

More information

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

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

More information

APPM 2460 PLOTTING IN MATLAB

APPM 2460 PLOTTING IN MATLAB APPM 2460 PLOTTING IN MATLAB. 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, or plots.

More information

YOUR MATLAB ASSIGNMENT 4

YOUR MATLAB ASSIGNMENT 4 YOUR MATLAB ASSIGNMENT 4 Contents GOAL: USING MATLAB TO SKETCH THE GRAPHS OF A PARAMETERIZED SURFACES IN SPACE USE THE FOLLOWING STEPS: HERE IS AN ACTUAL EXAMPLE OF A CLOSED SURFACE DRAWN PARAMETERICALLY

More information

MATLAB Tutorial. Primary Author: Shoumik Chatterjee Secondary Author: Dr. Chuan Li

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

More information

Introduction to Matlab

Introduction to Matlab What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created

More information

Graphics Example a final product:

Graphics Example a final product: Basic 2D Graphics 1 Graphics Example a final product: TITLE LEGEND YLABEL TEXT or GTEXT CURVES XLABEL 2 2-D Plotting Specify x-data and/or y-data Specify color, line style and marker symbol (Default values

More information

Introduction to MATLAB programming: Fundamentals

Introduction to MATLAB programming: Fundamentals Introduction to MATLAB programming: Fundamentals Shan He School for Computational Science University of Birmingham Module 06-23836: Computational Modelling with MATLAB Outline Outline of Topics Why MATLAB?

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

Solving Simultaneous Nonlinear Equations. SELİS ÖNEL, PhD

Solving Simultaneous Nonlinear Equations. SELİS ÖNEL, PhD Solving Simultaneous Nonlinear Equations SELİS ÖNEL, PhD Quotes of the Day Nothing in the world can take the place of Persistence. Talent will not; nothing is more common than unsuccessful men with talent.

More information

DOWN PLUNGE CROSS SECTIONS

DOWN PLUNGE CROSS SECTIONS GG303 Lab 7 10/6/10 1 DOWN PLUNGE CROSS SECTIONS I Main Topics A Cylindrical folds B Downplunge cross-section views C Apparent dip II Cylindrical folds A Surface of a cylindrical fold is parallel to a

More information

FDP on Electronic Design Tools - Computing with MATLAB 13/12/2017. A hands-on training session on. Computing with MATLAB

FDP on Electronic Design Tools - Computing with MATLAB 13/12/2017. A hands-on training session on. Computing with MATLAB A hands-on training session on Computing with MATLAB in connection with the FDP on Electronic Design Tools @ GCE Kannur 11 th 15 th December 2017 Resource Person : Dr. A. Ranjith Ram Associate Professor,

More information

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 INC151 Electrical Engineering Software Practice MATLAB Graphics Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 Graphical display is one of MATLAB s greatest strengths and most

More information

Introduction to MATLAB Practical 1

Introduction to MATLAB Practical 1 Introduction to MATLAB Practical 1 Daniel Carrera November 2016 1 Introduction I believe that the best way to learn Matlab is hands on, and I tried to design this practical that way. I assume no prior

More information

TOPIC 6 Computer application for drawing 2D Graph

TOPIC 6 Computer application for drawing 2D Graph YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 6 Computer application for drawing 2D Graph Plotting Elementary Functions Suppose we wish

More information

Prof. Manoochehr Shirzaei. RaTlab.asu.edu

Prof. Manoochehr Shirzaei. RaTlab.asu.edu RaTlab.asu.edu Introduction To MATLAB Introduction To MATLAB This lecture is an introduction of the basic MATLAB commands. We learn; Functions Procedures for naming and saving the user generated files

More information

INTRODUCTION TO NUMERICAL ANALYSIS

INTRODUCTION TO NUMERICAL ANALYSIS INTRODUCTION TO NUMERICAL ANALYSIS Cho, Hyoung Kyu Department of Nuclear Engineering Seoul National University 0. MATLAB USAGE 1. Background MATLAB MATrix LABoratory Mathematical computations, modeling

More information

Introduction to Matlab

Introduction to Matlab Technische Universität München WT 21/11 Institut für Informatik Prof Dr H-J Bungartz Dipl-Tech Math S Schraufstetter Benjamin Peherstorfer, MSc October 22nd, 21 Introduction to Matlab Engineering Informatics

More information

6 Appendix B: Quick Guide to MATLAB R

6 Appendix B: Quick Guide to MATLAB R 6 Appendix B: Quick Guide to MATLAB R 6.1 Introduction In this course we will be using the software package MATLAB R. Version 17.12.0, Release R2011a has been installed in Foster 100, the labs on the third

More information

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix.

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix. MATLAB Tutorial 1 1 Department of Mathematics and Statistics, The University of New Mexico, Albuquerque, NM 87131 August 28, 2016 Contents: 1. Scalars, Vectors, Matrices... 1 2. Built-in variables, functions,

More information

Spring 2010 Instructor: Michele Merler.

Spring 2010 Instructor: Michele Merler. Spring 2010 Instructor: Michele Merler http://www1.cs.columbia.edu/~mmerler/comsw3101-2.html MATLAB does not use explicit type initialization like other languages Just assign some value to a variable name,

More information

A Brief Introduction to MATLAB

A Brief Introduction to MATLAB A Brief Introduction to MATLAB MATLAB (Matrix Laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB was first designed for matrix computations:

More information

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines Math 18.02 (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines February 12 Reading Material: From Simmons: 17.1 and 17.2. Last time: Square Systems. Word problem. How many solutions?

More information

Introduction to Matlab. WIAA Technical Workshop #2 10/20/2015

Introduction to Matlab. WIAA Technical Workshop #2 10/20/2015 Introduction to Matlab WIAA Technical Workshop #2 10/20/2015 * This presentation is merely an introduction to some of the functions of MATLAB and is not a comprehensive review of their capabilities. **

More information

Interactive Computing with Matlab. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University

Interactive Computing with Matlab. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University Interactive Computing with Matlab Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu Starting Matlab Double click on the Matlab icon, or on unix systems

More information

What is Matlab? A software environment for interactive numerical computations

What is Matlab? A software environment for interactive numerical computations What is Matlab? A software environment for interactive numerical computations Examples: Matrix computations and linear algebra Solving nonlinear equations Numerical solution of differential equations Mathematical

More information

MATLAB PROGRAMMING LECTURES. By Sarah Hussein

MATLAB PROGRAMMING LECTURES. By Sarah Hussein MATLAB PROGRAMMING LECTURES By Sarah Hussein Lecture 1: Introduction to MATLAB 1.1Introduction MATLAB is a mathematical and graphical software package with numerical, graphical, and programming capabilities.

More information

PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" Matlab Fun - 2

PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING CIPM 2017 Matlab Fun - 2 Table of Contents PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" - 2 What? Matlab can be fun... 1 Plot the Sine Function...

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Roger Hansen (rh@fys.uio.no) PGP, University of Oslo September 2004 Introduction to Matlab p.1/22 Contents Programming Philosophy What is Matlab? Example: Linear algebra Example:

More information

Functions of Several Variables

Functions of Several Variables Jim Lambers MAT 280 Spring Semester 2009-10 Lecture 2 Notes These notes correspond to Section 11.1 in Stewart and Section 2.1 in Marsden and Tromba. Functions of Several Variables Multi-variable calculus

More information

EL2310 Scientific Programming LAB1: MATLAB lab session. Patric Jensfelt

EL2310 Scientific Programming LAB1: MATLAB lab session. Patric Jensfelt EL2310 Scientific Programming LAB1: MATLAB lab session Patric Jensfelt Chapter 1 Introduction 1.1 Goals for this lab The goals for this lab is handle the computers in the computer rooms create and edit

More information

PROBLEMS INVOLVING PARAMETERIZED SURFACES AND SURFACES OF REVOLUTION

PROBLEMS INVOLVING PARAMETERIZED SURFACES AND SURFACES OF REVOLUTION PROBLEMS INVOLVING PARAMETERIZED SURFACES AND SURFACES OF REVOLUTION Exercise 7.1 Plot the portion of the parabolic cylinder z = 4 - x^2 that lies in the first octant with 0 y 4. (Use parameters x and

More information

Introduction to MATLAB LAB 1

Introduction to MATLAB LAB 1 Introduction to MATLAB LAB 1 1 Basics of MATLAB MATrix LABoratory A super-powerful graphing calculator Matrix based numeric computation Embedded Functions Also a programming language User defined functions

More information

Chapter 2 Vectors and Graphics

Chapter 2 Vectors and Graphics Chapter 2 Vectors and Graphics We start this chapter by explaining how to use vectors in MATLAB, with an emphasis on practical operations on vectors in the plane and in space. Remember that n-dimensional

More information

MAT 275 Laboratory 1 Introduction to MATLAB

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

More information

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Islamic University of Gaza Faculty of Engineering Electrical Engineering Department 2012 DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Goals for this Lab Assignment: In this lab we would have

More information

Relational and Logical Operators. MATLAB Laboratory 10/07/10 Lecture. Chapter 7: Flow Control in Programs. Examples. Logical Operators.

Relational and Logical Operators. MATLAB Laboratory 10/07/10 Lecture. Chapter 7: Flow Control in Programs. Examples. Logical Operators. Relational and Logical Operators MATLAB Laboratory 10/07/10 Lecture Chapter 7: Flow Control in Programs Both operators take on form expression1 OPERATOR expression2 and evaluate to either TRUE (1) or FALSE

More information

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review.

MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review. MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review. 1. The intersection of two non-parallel planes is a line. Find the equation of the line. Give

More information

1.5 Equations of Lines and Planes in 3-D

1.5 Equations of Lines and Planes in 3-D 1.5. EQUATIONS OF LINES AND PLANES IN 3-D 55 Figure 1.16: Line through P 0 parallel to v 1.5 Equations of Lines and Planes in 3-D Recall that given a point P = (a, b, c), one can draw a vector from the

More information

EGR 111 Plotting Data

EGR 111 Plotting Data EGR 111 Plotting Data This lab shows how to import data, plot data, and write script files. This lab also describes the Current Folder, the comment symbol ( % ), and MATLAB file names. New MATLAB Commands:

More information