Plotting Multiple Graphs In The Same Plot

Slides:



Advertisements
Similar presentations
Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
Advertisements

Plotting Selim Aksoy Bilkent University Department of Computer Engineering
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
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.
Slide deck by Dr. Greg Reese Miami University MATLAB An Introduction With Applications, 5 th Edition Dr. Amos Gilat The Ohio State University Chapter 5.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 19P. 1Winter Quarter MATLAB: Script and.
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.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 4.
MATLAB - Lecture 22A Two Dimensional Plots / Chapter 5 Topics Covered:
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
EGR106 Week 5 MATLAB FILES Two Dimensional Plots Multiple Plots Plot Formatting Homework.
EGR106 Week 4 Two Dimensional Plots Multiple Plots Plot Formatting Homework.
HTML FORMATTING. CONTENTS HTML Formatting Formatting Example Formatting Example Output Summary Exercise.
Lecture 9 Plotting in 2-D Plotting in 2-D, Plotting Multiple Curves, Plotting with Figures, Plot Settings, Scaling, Legends © 2007 Daniel Valentine. All.
2.02E Adding and Animating Text into Computer Animations 2.02 Develop Computer Animations.
PhotoStory.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
MORE HTML REMEMBER TO SEARCH W3 SCHOOLS FOR MORE INFO.
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 1 in MATLAB Topics Covered: 1.Plotting basic 2-D plots The plot()
Matlab Programming for Engineers Dr. Bashir NOURI Introduction to Matlab Matlab Basics Branching Statements Loops User Defined Functions Additional Data.
MAE 1202: AEROSPACE PRACTICUM An Introduction to MATLAB: Part 2 Mechanical and Aerospace Engineering Department Florida Institute of Technology Developed.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication Linda Driskill, Gang Cheng,
Matlab Screen  Command Window  type commands  Current Directory  View folders and m-files  Workspace  View program variables  Double click on a.
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,
Sept. 26, 2005 Lecture 6 - By Paul Lin 1 CPET 190 Lecture 6 Problem Solving with MATLAB
1-d Arrays & Plotting.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
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.
EGR 106 – Week 5 – 2-D Plots Question : Why do engineers use plots? Answer : To analyze, visualize, and present data. Matlab has many useful plotting options.
2.02F Adding and Animating Text in Computer Animations
Excel Charts and Graphs
1.3 ARITHMETIC OPERATIONS WITH SCALARS
ECE 1304 Introduction to Electrical and Computer Engineering
Computer Application in Engineering Design
Lecture 25.
Excel Part 4 Working with Charts and Graphics
Two-Dimensional Plots
Excel Part 4 Working with Charts and Graphics
A computer program is a sequence of computer commands.
Chapter 7 Text.
Net 222: Communications and networks fundamentals (Practical Part)
Net 222: Communications and networks fundamentals (Practical Part)
Net 222: Communications and networks fundamentals (Practical Part)
2.02E Adding and Animating Text into Computer Animations
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
Chapter2 Creating Arrays
Conditional Statements
Plotting Signals in MATLAB
Lesson 3: Formatting Text
Designing Effective Graphics Using MATLAB
Graphing Data.
ARRAY DIVISION Identity matrix Islamic University of Gaza
Islamic University of Gaza
Islamic University of Gaza
2.02E Adding and Animating Text into Computer Animations
THREE-PHASE INVERTERS
Using Script Files and Managing Data
Chapter 3 Islamic University of Gaza Faculty of Engineering
Histograms are plots that show the distribution of data.
USING ARRAYS IN MATLAB BUILT-IN MATH FUNCTIONS
Excel Part 4 Working with Charts and Graphics
Title in Arial (Bold) 60 Point Font
Input-Output Stability
Presentation transcript:

Plotting Multiple Graphs In The Same Plot Islamic University of Gaza Faculty of Engineering Civil Engineering Department Plotting Multiple Graphs In The Same Plot Using the plot Command Computer Programming Computer Programming Dr.Moayed Almobaied Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Using the hold on and hold off Commands Islamic University of Gaza Faculty of Engineering Civil Engineering Department Using the hold on and hold off Commands Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Using the line Command Islamic University of Gaza Faculty of Engineering Civil Engineering Department Using the line Command Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

FORMATTING A PLOT The xlabel and ylabel commands: The title command: Islamic University of Gaza Faculty of Engineering Civil Engineering Department FORMATTING A PLOT The xlabel and ylabel commands: The title command: Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

The text command: The legend command: Islamic University of Gaza Faculty of Engineering Civil Engineering Department The text command: The legend command: Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department The text in the string that is included in the command and is displayed when the command is executed can be formatted. The formatting can be used to define the font, size, position (superscript, subscript), style (italic, bold, etc.), and color of the characters, the color of the background, and many other details of the display. Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Greek characters: Islamic University of Gaza Faculty of Engineering Civil Engineering Department Greek characters: Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Formatting of the text that is displayed by the xlabel, ylabel, title, and text commands can also be done by adding optional PropertyName and PropertyValue arguments following the string inside the command. Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

When the plot (x, y) command is executed, MATLAB creates Islamic University of Gaza Faculty of Engineering Civil Engineering Department The axis command: When the plot (x, y) command is executed, MATLAB creates axes with limits that are based on the minimum and maximum values of the elements of x and y. Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Formatting a Plot Using the Plot Editor Islamic University of Gaza Faculty of Engineering Civil Engineering Department Formatting a Plot Using the Plot Editor Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Plots with Logarithmic Axes Islamic University of Gaza Faculty of Engineering Civil Engineering Department Plots with Logarithmic Axes Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Notes for plots with logarithmic axes: Islamic University of Gaza Faculty of Engineering Civil Engineering Department Notes for plots with logarithmic axes: • The number zero cannot be plotted on a log scale • Negative numbers cannot be plotted on log scales Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

PLOTS WITH ERROR BARS Islamic University of Gaza Faculty of Engineering Civil Engineering Department PLOTS WITH ERROR BARS Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

PLOTS WITH SPECIAL GRAPHICS Islamic University of Gaza Faculty of Engineering Civil Engineering Department PLOTS WITH SPECIAL GRAPHICS Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13

Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Dr.Moayed Almobaied Computer Programming Lecture 13