Introduction to Engineering MATLAB – 10 Plotting - 3 Agenda Special 2-D Plots fplot command.

Slides:



Advertisements
Similar presentations
2D Plots 1 ENGR 1181 MATLAB 12.
Advertisements

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.
1 Chapter 4 Curve Plotting with MATLAB MATLAB provides some very powerful features for plotting and labeling curves. These operations can be performed.
Graphing 101. Graphing basics Use: graph paper a ruler a pencil (be neat) Connect data points using a line or curve of best fit.
Slideshow C4: Drawing graphs. Features of a good bar chart The bars should be drawn accurately with a pencil and ruler. They should be of equal width.
Looking for patterns If we plot a graph of luminosity against temperature for lots of stars we get a graph like this…
Chapter 3 Vectors.
Vectors and Plotting Selim Aksoy Bilkent University Department of Computer Engineering
Let's zoom in on one corner of the coordinate plane
The Coordinate Plane coordinate plane In coordinate Geometry, grid paper is used to locate points. The plane of the grid is called the coordinate plane.
Chapter 5 Plotting Data Curve Fitting, Good Graphing Practices Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Graph Check List Draw a pair of axes in your notebook, full page.
Plotting - Advanced. FPLOT Plots a function f(x) written as a string within quotation marks. The free variable needs to be designated with x. The lower.
Independent vs. Dependent Variables What is the difference?
Graphing in Science. Types of Charts  Most scientific graphs are made as line graphs.  However, occasionally bar graphs, pie charts, or scatter plots.
Chapter 3 Vectors.
STATISTICAL GRAPHS.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 1 in MATLAB Topics Covered: 1.Plotting basic 2-D plots The plot()
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers Chapter 5 Advanced.
Chapter 3 Vectors Coordinate Systems Used to describe the position of a point in space Coordinate system consists of A fixed reference point called.
1 Advanced Plotting ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Graphs in Science You Can Do It!!!.
CMPS 1371 Introduction to Computing for Engineers PLOTTING.
„  1999 BG Mobasseri1 9/18/2015 June 2 GRAPHICS IN MATLAB- PART I BASIC PLOTTING.
MATLAB Plotting With MATLAB 1. Two Dimensional Plots The xy plot is the most commonly used plot by engineers The independent variable is usually called.
Quantitative Skills 1: Graphing
Graphing Checklist: Pick out independent & dependent variable Using as much of the page as possible darken axes Label axes with variable and units Pick.
Section 2.4 Representing Data.
Chapter 3 Vectors. Coordinate Systems Used to describe the position of a point in space Coordinate system consists of a fixed reference point called the.
Chapter 3 Vectors. Coordinate Systems Used to describe the position of a point in space Coordinate system consists of a fixed reference point called the.
V. Rouillard  Introduction to measurement and statistical analysis GRAPHICAL PRESENTATION OF EXPERIMENTAL DATA It is nearly always the case that.
16 Graph Skills How to read and understand advanced types of bar charts, area graphs, climographs and triangle graphs How to advance their skills of drawing.
Drawing a line graph. A 2-D diagram of the apparatus used in the scientific investigation open air hole Close d air hole closed air hole.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers Chapter 5 Advanced.
ENG 1181 College of Engineering Engineering Education Innovation Center MATLAB – 2D Plots 1 Go to the class drive: ---> MatLab - Graphing ---> Seed Files.
Master in Optical Fiber Communications and Photonic Technologies Foundations of Digital Transmission - Fall quarter Introduction to Matlab.
Determine if the following point is on the graph of the equation. 2x – y = 6; (2, 3) Step 1: Plug the given points into the given equation. 2(2) – (3)
11/20/2015ENGR 111A - Fall MatLab – Palm Chapter 5 Curve Fitting Class 14.1 Palm Chapter:
Bar Graphs Used for comparing separate groups. Axes X- axis: independent variable (what the scientist controls) Horizontal D – dependent R – responding.
Graph: a visual display of information or data
Chapter 3 Vectors. Vector quantities  Physical quantities that have both numerical and directional properties Mathematical operations of vectors in this.
Graphs and How to Use Them. Graphs Visually display your results and data Allow you (and your peers) to see trends Help to make conclusions easier Are.
GRAPHING NOTES Part 1. TYPES OF GRAPHS Graphs are used to illustrate what happens during an experiment. Bar graph - used for comparing data. Pie graph.
How to Read, Develop, and Interpret GRAPHS! OBSERVATIONS: often are recorded in a data table. We INTERPRET our data table by making INFERENCES and PREDICTIONS.
Recap Chapter 5 “Plotting” Two Dimensional Plots Simple x-y Plots Titles, Labels and Grids Multiple Plots.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
2D Plots 2 ENGR 1181 MATLAB 13. Plotting in the Real World 2D plots generated by MATLAB can be used in a variety of fields, including the one shown here,
Graphs of Motion Physics Ms. Allison. General Graphing Rules Title Label x and y axis with units - Dependent variable is on the y-axis; independent is.
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part I Wednesday 17 Sept 2014 EGR 115 Introduction to Computing for Engineers.
GRAPHING ON A COORDINATE PLANE. VOCABULARY Coordinate system- a system which uses one or more numbers or coordinates, to uniquely determine the position.
Graphing Review DRY MIX IN Headings Vocabulary Important Words.
ENG 1181 College of Engineering Engineering Education Innovation Center MatLab – 2D Plots 2 MATLAB has many built-in functions and commands to create various.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 2 in MATLAB Topics Covered: 1.More about 2-D plots  Placing multiple.
Making line graphs How are line graphs the same as bar graphs? x- and y-axis Label axes Even spacing Title Use tickmarks.
Coordinate Plane.
Introduction to Engineering MATLAB – 9 Plotting - 2 Agenda Formatting plots.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
CS100A, Fall 1998, Lecture 191 CS100A, Fall 1998 Lecture 19, Thursday Nov 05 Matlab Concepts: Matlab arrays Matlab subscripting Matlab plotting.
Chapter 3 Lecture 5: Vectors HW1 (problems): 1.18, 1.27, 2.11, 2.17, 2.21, 2.35, 2.51, 2.67 Due Thursday, Feb. 11.
1.5 Scatter Plots & Line of Best Fit. Scatter Plots A scatter plot is a graph that shows the relationship between two sets of data. In a scatter plot,
 Line Graphs: are used to show something changing over time.  Bar Graphs: are used to show a comparison between two or more variables.  Pie Chart:
Data Representation: Making Tables & Graphs. Data Tables.
Chapter 3 Vectors. Vector quantities  Physical quantities that have both numerical and directional properties Mathematical operations of vectors in this.
Session III Plotting in MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU MATLAB Tutorials.
Data Visualization basics Petar Horozov Nikolay Nedyalkov
Tell a Story with the Data
MatLab – Palm Chapter 5 Curve Fitting
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.
Presentation transcript:

Introduction to Engineering MATLAB – 10 Plotting - 3 Agenda Special 2-D Plots fplot command

LOGARITHMIC PLOTS Plot commands for plots with logarithmic scales. loglog(x,y)Creates a y vs. x plot with log scale on both axes. semilogx(x,y)Creates a y vs. x plot with log scale on the x axis and linear scale on the y axis. semilogy(x,y)Creates a y vs. x plot with log scale on the y axis. and linear scale on the x axis.

IMPORTANT FACTS ABOUT LOGARITHMIC PLOTS 1.Negative numbers can not be plotted on log scales (since log of a negative number is not defined). 2.The number zero can not be plotted on a log scale. 3.The tick-mark labels on a log scale are the actual values being plotted (they are not the logarithms of the numbers). 4.Equal distances on a log scale correspond to multiplication by the same constant (in linear scale equal distances correspond to addition of the same constant). 5.Tick marks are not evenly spaced.

PLOT OF THE FUNCTION WITH LINEAR AND LOG SCALES Log Linear Log Linear plot(x,y) semilogy(x,y) semilogx(x,y)loglog(x,y)

PLOTS WITH SPECIAL GRAPHICS Commands for plots with special geometry: bar(x,y)Creates a bar chart of y vs. x. stairs(x,y)Creates a stair chart of y vs. x. (example follows) stem(x,y)Creates a stem chart of y vs. x. (example follows) polar(theta,r)Creates a polar plot. The vectors theta and r contain the polar coordinates  and r, respectively.

EXAMPLE OF PLOTS WITH SPECIAL GRAPHICS Bar plot of the population growth data.

EXAMPLE OF PLOTS WITH SPECIAL GRAPHICS Stairs and stem plots of the population growth data.

EXAMPLE OF A POLAR PLOT A polar plot of the function: >> theta=linspace(0,6*pi,150); >> r=theta.^1.2; >> polar(theta,r)

THE fplot COMMAND The command: fplot(‘the function as a string’,[xmin xmax]) plots the function between the x-axis limits specified by [xmin,xmax]. The command can also include the limits of the y-axis and specification of the line (color,type, etc.). Example: fplot('cos(8*x+2)/exp(-0.8*x)',[ ],'r') The function: Range of the independent variable x Limits of The y axis Plot with red line

THE fplot COMMAND fplot('cos(8*x+2)/exp(-0.8*x)',[ ],'r') The plot created by