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,

Slides:



Advertisements
Similar presentations
Array Operations ENGR 1181 MATLAB 4. Aerospace Engineers use turbulence data to calculate how close other planes can fly near the wake of a larger plane.
Advertisements

Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
2D Plots 1 ENGR 1181 MATLAB 12.
Introduction to Graphing Using MATLAB. Line Graphs  Useful for graphing functions  Useful for displaying data trends over time  Useful for showing.
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.
Input and Output ENGR 1181 MATLAB 5. Input and Output In The Real World Script files (which provide outputs given inputs) are important tools in MATLAB.
Introduction to Engineering MATLAB – 10 Plotting - 3 Agenda Special 2-D Plots fplot command.
Program Design ENGR 1181 MATLAB 11. MATLAB Program Design in Real Life Complex manufacturing processes require careful logic mapping to determine what.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
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.
Graphics in MATLAB Week 15 – 5/5/09 Kate Musgrave
MATLAB - Lecture 22A Two Dimensional Plots / Chapter 5 Topics Covered:
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
1 Introduction to MatLab MatLab stands for Matrix Laboratory. As the name suggests most of the programming operations have as input or output a matrix.
EGR106 Week 4 Two Dimensional Plots Multiple Plots Plot Formatting Homework.
Section 6.4 Use point plotting to graph polar equations.
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.
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
Ranga Rodrigo April 6, 2014 Most of the sides are from the Matlab tutorial. 1.
PLOTS AND FIGURES DAVID COOPER SUMMER Plots One of the primary uses for MATLAB is to be able to create publication quality figures from you data.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 1 in MATLAB Topics Covered: 1.Plotting basic 2-D plots The plot()
For Loops 2 ENGR 1181 MATLAB 9. For Loops and Looped Programming in Real Life As first introduced last lecture, looping within programs has long been.
Excel Data Analysis ENGR 1181 Class 6. Today’s Learning Objectives  After today’s class, students will be able to: Understand and differentiate among.
„  1999 BG Mobasseri1 9/18/2015 June 2 GRAPHICS IN MATLAB- PART I BASIC PLOTTING.
Functions 1 ENGR 1181 MATLAB 14.
ELG 3120 Signal and System Analysis 1 Introduction to MATLAB TAs Wei Zhang Ozgur Ekici (Section A)(Section B) ELG 3120 Lab Tutorial 1.
Introduction to MATLAB ENGR 1181 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
For Loops 1 ENGR 1181 MATLAB 8. For Loops and Looped Programming in Real Life Looping within programs has long been a useful tool for completing mundane.
Conditional Statements ENGR 1187 MATLAB 7. Conditional Statements in Real Life A Fluorescence Activated Cell Sorter (FACS) sorts cells based on predetermined.
Lecture 10 2D plotting & curve fitting Subplots Other 2-D Plots Other 2-D Plots Curve fitting © 2007 Daniel Valentine. All rights reserved. Published by.
Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers.
Matlab Screen  Command Window  type commands  Current Directory  View folders and m-files  Workspace  View program variables  Double click on a.
Graphics 1: Isometric Sketching and Coded Plans ENGR 1182.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
Welcome to the Fundamentals of Mathematics for Engineers Lab ENGR 2194 Lab # 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals.
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,
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
While Loops ENGR 1181 MATLAB 10.
Inverse Trig functions
Array Creation ENGR 1181 MATLAB 2. Civil engineers store seismic data in arrays to analyze plate tectonics as well as fault patterns. These sets of data.
Array Operations ENGR 1181 MATLAB 4.
Fundamentals of Mathematics for Engineers Lab ENGR 2194 Lab # 2 – Trigonometric Relationships: One and Two-Link Planar Robots.
Array Creation ENGR 1187 MATLAB 2. Today’s Topics  Arrays: What are they?  Vectors  Matrices  Creating Arrays.
Teamwork and Problem Solving: Activities ENGR 1181 Class 2 – Part 2.
ENG 1181 College of Engineering Engineering Education Innovation Center MatLab – 2D Plots 2 MATLAB has many built-in functions and commands to create various.
Excel Graphing ENGR 1181 Class 5. Why use Excel?  Excel is a powerful spreadsheet program that can be used for: Creating graphical displays of data Performing.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Program design and algorithm development We will consider the design of your own toolbox to be included among the toolboxes already available with your.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 2 in MATLAB Topics Covered: 1.More about 2-D plots  Placing multiple.
Array Accessing and Strings ENGR 1187 MATLAB 3. Today's Topics  Array Addressing (indexing)  Vector Addressing (indexing)  Matrix Addressing (indexing)
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.
Logical Expressions ENGR 1181 MATLAB 6. Logical Expressions in Real Life Sorting objects in manufacturing processes can be accomplished automatically.
To add, subtract, multiply, and divide, absolutely follow the mathematical rules. 1. All the rules 2. The element-per-element operator 3. Ex1: graphing.
Welcome to the Fundamentals of Mathematics for Engineers Lab ENGR 2194 MATLAB Supplemental Instruction #1.
Matlab Programming for Engineers
Computer Application in Engineering Design
Ch3 Graphics Overview of Plotting Editing Plots
MatLab – Palm Chapter 5 2-D & 3-D Plots
Net 222: Communications and networks fundamentals (Practical Part)
Lecture 10 2D plotting & 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.
Plotting Data with MATLAB
Array Creation ENGR 1181 MATLAB 02.
Plotting Signals in MATLAB
Patterns and Nonlinear Functions
Presentation transcript:

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, which is showing life expectancy vs. literacy rates vs. population in various continents.

Today's Learning Objectives  After today’s class, students will be able to: Create other 2D graphing options in MATLAB (e.g., log, bar, subplot, fplot). Select the proper opportunities to utilize aforementioned 2D graphing options.

The fplot() Command >> fplot('function', [limits])  The fplot() command lets you plot a function instead of using vectors of x and y values  Only one variable can be referenced in the function  Function is entered as a string  Limits are entered as a vector

The fplot Command Plot the function y = x^3 + 2x^2 -5 for -3<x<3: >> fplot('x^3 + 2*x^2 -5', [-3,3]) Remember that only one variable can be in the fplot() command and that the function is entered as a string

Polar Plots >> polar(theta, r)  The polar command plots functions with coordinates r and Ɵ.  r and Ɵ must be equal length vectors, and Ɵ is in radians  Use 'hold on, hold off' to plot multiple curves.

Subplots >> subplot(rows, columns, plot #)  Use before typing the plot command  Specifies the location of the subsequent plot  Ex: subplot(2,2,3) plot(x,y3) title('Subplot 3: sin(4x)')

Important Takeaways  The fplot() command can be used to plot functions  Polar plots can also be generated using the polar() command  Multiple plots can be organized in the same figure with the subplot() command

Preview of Next Class  Functions I What is a function? Introduce basic structure of MATLAB functions Provide examples of functions

What’s Next?  Review today’s Quiz #13  Open the in-class activity from the EEIC website and we will go through it together.  Then, start working on MAT-13 homework.  Prepare for the next class by reading about MATLAB Functions 1.