Introduction to Matlab for Engineers
|
|
- Pierce Bridges
- 6 years ago
- Views:
Transcription
1 Introduction to Matlab for Engineers Instructor: Thai Nhan Math 111, Ohlone, Spring 2016 Introduction to Matlab for Engineers Ohlone, Spring /19
2 Today s lecture 1. The subplot command 2. Logarithmic Plots 3. 3D Graphing Introduction to Matlab for Engineers Ohlone, Spring /19
3 Subplot command Subplot is a method of dividing a single figure window into multiple parts. It uses the command subplot(m,n,p). This creates an m n grid of individual plots, with the specific graph shown in element p. figure(1); subplot(1,3,2);% Divides Figure 1 into 3 sections (1 row, 3 columns, position 2) plot(...); % Plot your graph in second element subplot(1,3,3); plot(...); % Plot your graph in third element Introduction to Matlab for Engineers Ohlone, Spring /19
4 Logarithmic Plots We have learned the syntax plot(x,y) which generates a linear plot of vectors x and y. The x- and y-axes are divided into equally spaced intervals. Sometimes, values of a variable ranges over many orders of magnitude. So we may want to use a logarithmic scale on one or both of the axes. Logarithmic plots are useful for representing data that vary exponentially. Data can be graphed without compressing the smaller values. (Reading: Section 5.3.2, and Appendix B, Moore s textbook.) Introduction to Matlab for Engineers Ohlone, Spring /19
5 Logarithmic Plots The Matlab commands for generating logarithmic plots of the vectors x and y: semilogx(x,y) a plot with a logarithmic scale (base 10) for x and a linear scale for y semilogy(x,y) a plot with a linear scale for x and a logarithmic scale (base 10) for y loglog(x,y) a plot with a logarithmic scale (base 10) for both x and y Table: Logarithmic Plots in Matlab. Introduction to Matlab for Engineers Ohlone, Spring /19
6 Logarithmic Plots Download the m-file Lecture 10 loglog.m to see examples of semilog and loglog plots. Introduction to Matlab for Engineers Ohlone, Spring /19
7 3D Graphing For common use, there are two types of three-dimensional graphs: curves (wires) and surfaces. Both curves and some types of surfaces require the use of parametric functions, material typically found in Calculus III. Download the m-file Lecture 10 3D plot.m to see examples for 3D plotting. (Reading: Section 5.4, Moore s textbook.) Introduction to Matlab for Engineers Ohlone, Spring /19
8 3D Graphing: Curves A three-dimensional curve has one variable and three coordinates to plot the position of the points. This is called a parametric curve. The command used is plot3. For example, the following code plots the curve z(t) = (cos(t), sin(t), sin(6t)), t [0, 2π]: t=linspace(0,2*pi,64); plot3(cos(t),sin(t),sin(6*t)); Introduction to Matlab for Engineers Ohlone, Spring /19
9 3D Graphing: Surfaces To create surfaces, Matlab uses a grid on the x-y plane. This is called a meshgrid. The surface is then defined in terms of this grid. The standard 3D plot command is called surf. For example: [x,y]=meshgrid(-2:0.1:2);% Create a rectangular grid in 2D surf(x,y,x.ˆ2+y.ˆ2); Introduction to Matlab for Engineers Ohlone, Spring /19
10 3D Graphing: Surfaces Another 3D plot command is called mesh. Try the following and observe the difference. [x,y]=meshgrid(-2:0.1:2); mesh(x,y,x.ˆ2+y.ˆ2); Introduction to Matlab for Engineers Ohlone, Spring /19
11 3D Graphing: Surfaces An alternative for surfaces is to show a surface with contour lines in the x-y plane. It uses the surfc (or meshc) command. [x,y]=meshgrid(-2:0.1:2); surfc(x,y,x.ˆ2+y.ˆ2); Introduction to Matlab for Engineers Ohlone, Spring /19
12 3D Graphing: Surfaces An alternative for surfaces is to use two independent variables, say u and v, and then define the three position variables in terms of these variables. This is called a parametric surface. It still uses the surf command. [u,v]=meshgrid(0:0.1:2,0:0.1:5*pi); x=u.*cos(v); y=u.*sin(v); z=4-u.ˆ2+v.ˆ2; surf(x,y,z); Introduction to Matlab for Engineers Ohlone, Spring /19
13 3D Graphing: Surfaces A nice use for parametric surfaces is to express 3 space dimensions and a fourth characteristic, say temperature. [u,v]=meshgrid(0:.1:4,0:.1:2*pi); x=u.*cos(v); y=u.*sin(v); z=4-u.ˆ2+v.ˆ2; t=4-(x-0.5).ˆ2-(y+0.75).ˆ2; surf(x,y,z,t); Introduction to Matlab for Engineers Ohlone, Spring /19
14 Surf Options: Eliminate the Surface Mesh To eliminate the mesh on the surface, use the shading option. Learn more about shading, use doc or help features. [u,v]=meshgrid(0:.1:4,0:.1:2*pi); x=u.*cos(v); y=u.*sin(v); z=4-u.ˆ2+v.ˆ2; surf(x,y,z); shading interp Introduction to Matlab for Engineers Ohlone, Spring /19
15 Surf Options: Colormap A colormap is a set of colors that are used for shading your surface. There are several built-in maps or you can create your own. The built-in colormaps are: lines, jet, hsv, hot, cool, spring, summer, autumn, winter. Introduction to Matlab for Engineers Ohlone, Spring /19
16 Surf Options: Transparency When displaying multiple surfaces, it is often nice to have the surfaces transparent. This is done with the alpha command. [u,v]=meshgrid(-1.5:0.1:1.5,linspace(0,2*pi,64)); x=cos(v); y=sin(v); z=u; s1=surf(x,y,z); set(s1, FaceColor, Red, FaceAlpha,0.5); hold on; s2=surf(z,x,y); set(s2, FaceColor, Blue, FaceAlpha,0.5); axis ([ ]); Introduction to Matlab for Engineers Ohlone, Spring /19
17 Comet in 2D The comet command will show a parametric 2-dimensional curve as it is being drawn. t=linspace(0,4*pi,400); x=(16-t).*cos(t); y=(16-t).*sin(t); comet(x,y,0.05); Introduction to Matlab for Engineers Ohlone, Spring /19
18 Comet in 2D An astroid can be drawn by comet command as follows. t=linspace(0,2*pi,400); x=2*(cos(t)).ˆ3; y=2*(sin(t)).ˆ3; comet(x,y,0.05); Introduction to Matlab for Engineers Ohlone, Spring /19
19 Comet in 3D The comet3 command will show a parametric 3-dimensional curve as it is being drawn t=linspace(0,4*pi,400); x=(16-t).*cos(t); y=(16-t).*sin(t); z=sin(4*t); comet3(x,y,z,0.05); Introduction to Matlab for Engineers Ohlone, Spring /19
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 informationPROGRAMMING 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 informationCSE 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 informationGraphics 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 informationClasses 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 informationMATLAB Laboratory 09/23/10 Lecture. Chapters 5 and 9: Plotting
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
More informationAdditional 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
More informationFF505/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 information3D 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 informationLab 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 informationPROBLEMS 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 informationIntroduction 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 informationLecture 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 informationLecture 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 informationIntroduction 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 informationMATH 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 informationLogical 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 informationMATLAB 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 informationName: 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 informationThe 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 informationINTRODUCTION 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 informationMechanical 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 informationMatlab 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
More informationMath 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
More informationChapter 11. Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB.
Chapter 11 Above: Principal contraction rates calculated from GPS velocities. Visualized using MATLAB. We have used MATLAB to visualize data a lot in this course, but we have only scratched the surface
More informationIntroduction to MATLAB
58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help
More informationPlotting - 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 informationLab 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 informationGRAPHICS 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 informationSGN 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 informationMath (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 informationChapter 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 informationThe 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 informationMore on Plots. Dmitry Adamskiy 30 Nov 2011
More on Plots Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 3 Nov 211 1 plot3 (1) Recall that plot(x,y), plots vector Y versus vector X. plot3(x,y,z), where x, y and z are three vectors of the same length, plots
More informationDr Richard Greenaway
SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 4 Visualising Data Dr Richard Greenaway 4 Visualising Data 4.1 Simple Data Plotting You should now be familiar with the plot function which is
More informationComputing 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 informationDepartment 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 informationPlotting 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 informationChapter 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 informationProf. 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 informationW1005 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 informationMedical Image Processing using MATLAB
Medical Image Processing using MATLAB Emilia Dana SELEŢCHI University of Bucharest, Romania ABSTRACT 2. 3. 2. IMAGE PROCESSING TOOLBOX MATLAB and the Image Processing Toolbox provide a wide range of advanced
More informationSolving 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 informationOutline. Case Study. Colormaps. Announcements. Syllabus Case Study Task 1: Animation. Each frame in animation contains. field. map.
Outline Announcements HW II due today HW III available shortly Remember, send me ideas by Wed. Syllabus Case Study Task 1: Animation Case Study Each frame in animation contains + map field Colormaps Clim(1)
More informationMath 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 informationINTRODUCTION 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 informationIntroduction to PartSim and Matlab
NDSU Introduction to PartSim and Matlab pg 1 PartSim: www.partsim.com Introduction to PartSim and Matlab PartSim is a free on-line circuit simulator that we use in Circuits and Electronics. It works fairly
More informationIntroduction 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 informationProblem Set 8: Complex Numbers
Goal: Become familiar with math operations using complex numbers; see how complex numbers can be used to show the frequency response of an RC circuit. Note: This PSet will be much easier if you have already
More informationBy 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 informationAssignment :1. 1 Arithmetic Operations : Compute the following quantities ) -1. and compare with (1-
1 Arithmetic Operations : Compute the following quantities. 2 5 2 5-1 and compare with (1-1 2 5 ) -1 Assignment :1 5-1 -1. The square root x can be calculated as sqrt(x) or 3 ( 5+1) 2 x^0.5. Area=πr 2
More informationLine Integration in the Complex Plane
න f z dz C Engineering Math EECE 3640 1 A Review of Integration of Functions of Real Numbers: a b f x dx is the area under the curve in the figure below: The interval of integration is the path along the
More informationIntroduction 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 informationContents. 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 informationFunctions 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 information9.1 Parametric Curves
Math 172 Chapter 9A notes Page 1 of 20 9.1 Parametric Curves So far we have discussed equations in the form. Sometimes and are given as functions of a parameter. Example. Projectile Motion Sketch and axes,
More informationInteractive 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 informationMATLAB Tutorial. Digital Signal Processing. Course Details. Topics. MATLAB Environment. Introduction. Digital Signal Processing (DSP)
Digital Signal Processing Prof. Nizamettin AYDIN naydin@yildiz.edu.tr naydin@ieee.org http://www.yildiz.edu.tr/~naydin Course Details Course Code : 0113620 Course Name: Digital Signal Processing (Sayısal
More informationMATLAB 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 informationIntroduction to MATLAB Fall Bruno Abreu Calfa Department of Chemical Engineering Carnegie Mellon University
Introduction to MATLAB 06-100 Fall 2014 Bruno Abreu Calfa Department of Chemical Engineering Carnegie Mellon University 1 What is MATLAB? Main MATLAB windows Simple calcula9ons Easy plo
More informationform are graphed in Cartesian coordinates, and are graphed in Cartesian coordinates.
Plot 3D Introduction Plot 3D graphs objects in three dimensions. It has five basic modes: 1. Cartesian mode, where surfaces defined by equations of the form are graphed in Cartesian coordinates, 2. cylindrical
More informationMatlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:
1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write
More informationA 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 informationLab 2B Parametrizing Surfaces Math 2374 University of Minnesota Questions to:
Lab_B.nb Lab B Parametrizing Surfaces Math 37 University of Minnesota http://www.math.umn.edu/math37 Questions to: rogness@math.umn.edu Introduction As in last week s lab, there is no calculus in this
More informationNENS 230 Assignment 4: Data Visualization
NENS 230 Assignment 4: Data Visualization Due date: Tuesday, October 20, 2015 Goals Get comfortable manipulating figures Familiarize yourself with common 2D and 3D plots Understand how color and colormaps
More informationDr. 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 informationWhat 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 information1 >> 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 informationLecturer: Keyvan Dehmamy
MATLAB Tutorial Lecturer: Keyvan Dehmamy 1 Topics Introduction Running MATLAB and MATLAB Environment Getting help Variables Vectors, Matrices, and linear Algebra Mathematical Functions and Applications
More informationFondamenti 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
More informationNatSciLab - 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
More informationinterpolation, color, & light Outline HW I Announcements HW II--due today, 5PM HW III on the web later today
interpolation, color, & light Outline Announcements HW II--due today, 5PM HW III on the web later today HW I: Issues Structured vs. Unstructured Meshes Working with unstructured meshes Interpolation colormaps
More informationIntroduction 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
More informationAPPM 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 informationGoals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves
Block #1: Vector-Valued Functions Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves 1 The Calculus of Moving Objects Problem.
More informationMath 126C: Week 3 Review
Math 126C: Week 3 Review Note: These are in no way meant to be comprehensive reviews; they re meant to highlight the main topics and formulas for the week. Doing homework and extra problems is always the
More informationMatrices and three-dimensional graphing
Matrices and three-dimensional graphing Module Summary Technical Tasks: 1. Create matrices in Matlab by assigning values, using for loops, or importing data 2. Do simple arithmetic with matrices in Matlab
More informationModeling and Simulating Social Systems with MATLAB
Modeling and Simulating Social Systems with MATLAB Lecture 2 Statistics and Plotting in MATLAB Olivia Woolley, Tobias Kuhn, Dario Biasini, Dirk Helbing Chair of Sociology, in particular of Modeling and
More informationWINTER 2017 ECE 102 ENGINEERING COMPUTATION STANDARD HOMEWORK #3 ECE DEPARTMENT PORTLAND STATE UNIVERSITY
WINTER 2017 ECE 102 ENGINEERING COMPUTATION STANDARD HOMEWORK #3 ECE DEPARTMENT PORTLAND STATE UNIVERSITY ECE 102 Standard Homework #3 (HW-s3) Problem List 15 pts Problem #1 - Curve fitting 15 pts Problem
More informationUNIVERSITI 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 informationA 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 informationEGR 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 informationGeorge Mason University ECE 201: Introduction to Signal Analysis Spring 2017
Assigned: January 27, 2017 Due Date: Week of February 6, 2017 George Mason University ECE 201: Introduction to Signal Analysis Spring 2017 Laboratory Project #1 Due Date Your lab report must be submitted
More informationIntroduction 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 informationPage 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01
Page 1 of E Spring Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Practice Midterm 1 minutes pts Question Points Grade 1 4 3 6 4 16 6 1 Total Notes (a) Write your name and your SID on the top right
More information12 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.
More informationIntroduction 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 information8.1 Simple Color Specifications
8 USING COLOR, LIGHT, AND TRANSPARENCY IN THIS CHAPTER 8. SIMPLE COLOR SPECIFICATIONS 8. COLOR MAPS 8.3 MODELING OBJECT LIGHTING 8.4 OBJECT TRANSPARENCY 8.5 ILLUSTRATIVE PROBLEMS 8. Simple Color Specifications
More informationTopic 5-6: Parameterizing Surfaces and the Surface Elements ds and ds. Big Ideas. What We Are Doing Today... Notes. Notes. Notes
Topic 5-6: Parameterizing Surfaces and the Surface Elements ds and ds. Textbook: Section 16.6 Big Ideas A surface in R 3 is a 2-dimensional object in 3-space. Surfaces can be described using two variables.
More informationExcel Functions & Tables
Excel Functions & Tables Winter 2012 Winter 2012 CS130 - Excel Functions & Tables 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course
More informationSpring 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 informationObjectives. 1 Running, and Interface Layout. 2 Toolboxes, Documentation and Tutorials. 3 Basic Calculations. PS 12a Laboratory 1 Spring 2014
PS 12a Laboratory 1 Spring 2014 Objectives This session is a tutorial designed to a very quick overview of some of the numerical skills that you ll need to get started. Throughout the tutorial, the instructors
More informationIntroduction to MatLab. Introduction to MatLab K. Craig 1
Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations
More informationConstraint-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 informationIntroduction to Matlab
Introduction to Matlab By:Mohammad Sadeghi *Dr. Sajid Gul Khawaja Slides has been used partially to prepare this presentation Outline: What is Matlab? Matlab Screen Basic functions Variables, matrix, indexing
More informationCalculus III. 1 Getting started - the basics
Calculus III Spring 2011 Introduction to Maple The purpose of this document is to help you become familiar with some of the tools the Maple software package offers for visualizing curves and surfaces in
More informationINTRODUCTION TO MATLAB
1 of 18 BEFORE YOU BEGIN PREREQUISITE LABS None EXPECTED KNOWLEDGE Algebra and fundamentals of linear algebra. EQUIPMENT None MATERIALS None OBJECTIVES INTRODUCTION TO MATLAB After completing this lab
More informationComputer Programming in MATLAB
Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Engineering Faculty Department of Mechanical Engineering Arrays in MATLAB; Vectors and Matrices Graphing Vector Generation Before graphing plots in
More informationMath 259 Winter Unit Test 1 Review Problems Set B
Math 259 Winter 2009 Unit Test 1 Review Problems Set B We have chosen these problems because we think that they are representative of many of the mathematical concepts that we have studied. There is no
More informationECE 3793 Matlab Project 1
ECE 3793 Matlab Project 1 Spring 2017 Dr. Havlicek DUE: 02/04/2017, 11:59 PM Introduction: You will need to use Matlab to complete this assignment. So the first thing you need to do is figure out how you
More information