Lecture 25.

Slides:



Advertisements
Similar presentations
1 SESSION 6 Using tables and graphs in project work.
Advertisements

Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
MATLAB’s extensive, device-independent plotting capabilities are one of its most powerful features. They make it very easy to plot any data at any time.
MATLAB GRAPHICS 2-D.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a Message Robert Grauer and Maryann Barber Exploring.
Introduction to Spreadsheets Presented by Frank H. Osborne, Ph. D. © 2005 Bio 2900 Computer Applications in Biology.
Pasewark & Pasewark 1 Excel Lesson 8 Working with Charts Microsoft Office 2007: Introductory.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Introduction to Matlab & Data Analysis
Chapter 9 Creating and Designing Graphs. Creating a Graph A graph is a diagram of data that shows relationship among a set of numbers. Data can be represented.
Microsoft FrontPage 2003 Illustrated Complete Using Office Components.
Microsoft ® Office Excel 2007 Working with Charts.
Chapter 4 "Inheritance" Inheritance is a powerful feature that allows the reuse of code. However, be sure that functions applied to objects created at.
Getting Started with TI-Interactive. TI-Interactive TI-Interactive can be used to create a variety of graphs. Scatter Plots, Line Plots, Histograms, Modified.
CTS130 Spreadsheet Lesson 9 - Building Charts. What is a Chart? A chart is a visual display of information in a worksheet. Charts can help you make comparisons,
Excel chapter 4.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
1. Chapter 15 Creating Charts 3 Charting Data in Word A chart or graph presents data visually. A chart depicts numeric data in a graphical format. If.
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
PowerPoint Lesson 6 Working with Tables and Charts Microsoft Office 2010 Advanced Cable / Morrison 1.
© 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Lecture 29 Enhancing Presentations with Graphics (2)
Excel Chapter 3: Excel Charts Objectives Decide which chart type to create Create a chart Change the chart type Change the data source and structure Apply.
Recap Chapter 5 “Plotting” Two Dimensional Plots Simple x-y Plots Titles, Labels and Grids Multiple Plots.
Recap Plots with More than one Line Plots of Complex Arrays Line, Color and Mark Style Axis Scaling and Annotating Plots Subplots Polar Plots Logarithmic.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Recap Functions with No input OR No output Determining The Number of Input and Output Arguments Local Variables Global Variables Creating ToolBox of Functions.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Lab 2 : potting to Matlab Networks.
VBk Practical Mathematics and Microsoft Excel Course Line graphs WINCHESTER COLLEGE.
Lesson 1 Notes.  A chart is a representation of worksheet data. A chart can enhance and simplify the of numerical data in a worksheet because the between.
Statistical Analysis with Excel © 2012 Project Lead The Way, Inc.Introduction to Engineering Design.
Plotting in Excel Ken youssefi Engineering 10.
Dive Into® Visual Basic 2010 Express
Excel Tutorial 8 Developing an Excel Application
Visual Basic.NET Windows Programming
Excel Charts and Graphs
Reading and Writing Image Files
Excel Lesson 8 Working with Charts
TIP │Use color to tell story, arrange multiple graphics together, add icons on top of charts to create custom graphics. EDITABLE GRAPHIC AT END OF PRESENTATION.
Working with Charts © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
The View Figure Module The View Figure and Figure modules are for FactSage like Notepad and Word for Windows. Use the View Figure module for simple graphical.
Computer Fundamentals
Plotting Chapter 5.
Ch3 Graphics Overview of Plotting Editing Plots
Lecture 25: Exploring data
Two-Dimensional Plots
Microsoft FrontPage 2003 Illustrated Complete
Microsoft PowerPoint 2003 Illustrated Introductory
Microsoft Excel 2003 Illustrated Complete
Introduction to Spreadsheets
Microsoft Office Illustrated Introductory, Windows XP Edition
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MatLab – 2D Plots 2 MATLAB has many built-in functions and commands to create various types of plots. Instructor notes: We start with an example of some.
Plotting Data with MATLAB
exploring Microsoft Office 2013 Plus
Digital Image Processing
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
Plotting Signals in MATLAB
Designing Effective Graphics Using MATLAB
Excel Lesson 8 Working with Charts
Microsoft Office Illustrated Fundamentals
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Lecture 25

Recap Function Plots Three Dimensional Plotting Surface Plotting Mesh Plot Surf Plot Contour Plot Editing in Plot in Graphical Window Making Plot from Workspace Window

Saving Plots There are several ways to save plots created in MATLAB: If the plot are created with programming code stored in an M-fi le, simplyrerunning the code will re-create the figure The figure can also be saved from the file menu, using the Save As . . . option. Several choices will be opened: The figure can be saved as a .fig fi le, which is a MATLAB -specific fi e format. To retrieve the figure, just double-click on the file name in the current folder. You can do the same thing programmatically with the code open <figurename.fig> The figure can be saved in a number of different standard graphics formats, such as jpeg ( .jpg ) and enhanced metafile ( .emf ). These versions of the figure can be inserted into other documents, such as a Word document Select Edit from the menu bar, then select copy figure, and paste the figure into another document Use the file menu to create an M-file that will re-create the figure

Summary of Chapter The most commonly used graph in engineering is the x – y plot This two-dimensional plot can be used to graph data or to visualize mathematical functions No matter what a graph represents, it should always include a title and x - and y -axis labels Axis labels should be descriptive and should include units, such as ft/s or kJ/kg MATLAB includes extensive options for controlling the appearance of your plots The user can specify the color, line style, and marker style for each line on a graph A grid can be added to the graph, and the axis range can be adjusted Text boxes and a legend can be employed to describe the graph The subplot function is used to divide the plot window into an mxn grid Inside each of these subwindows, any of the MATLAB ® plots can be created and modified

Continued…. In addition to x – y plots, MATLAB offers a variety of plotting options, including polar plots, pie charts, bar graphs, histograms, and x – y graphs with two y –axes The scaling on x – y plots can be modified to produce logarithmic plots on either or both x – and y- axes Engineers often use logarithmic scaling to represent data as a straight line The function fplot allows the user to plot a function without defining a vector of x - and y –values MATLAB automatically chooses the appropriate number of points and spacing to produce a smooth graph Additional function-plotting capability is available in the symbolic toolbox

Continued…. The three-dimensional plotting options in MATLAB include a line plot, a number of surface plots, and contour plots Most of the options available in two dimensional plotting also apply to these three-dimensional plots The meshgrid function is especially useful in creating three-dimensional surface plots Interactive tools allow the user to modify existing plots These tools are available from the figure menu bar Plots can also be created with the interactive plotting option from the workspace window The interactive environment is a rich resource Figures created in MATLAB can be saved in a variety of ways, either to be edited later or to be inserted into other documents MATLAB offers both proprietary file formats that minimize the storage space required to store figures and standard fi le formats suitable to import into other applications

Chapter 6 User-Defined Functions

Introduction The MATLAB programming language is built around functions A function is a piece of computer code that accepts an input argument from the user and provides output to the program Functions allow us to program efficiently, enabling us to avoid rewriting the computer code for calculations that are performed frequently For example: most computer programs contain a function that calculates the sine of a number In MATLAB, sin is the function name used to call up a series of commands that perform the necessary calculations The user needs to provide an angle, and MATLAB returns a result It isn’t necessary for the programmer to know how MATLAB calculates the value of sin(x)