EGR 115 Introduction to Computing for Engineers

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.
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.
Basic Graphing Using Excel Sweet Tea Sugar Detection.
MATLAB GRAPHICS 2-D.
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  Represents the passage of time and the numerical value of behavior.  The Independent.
How To Make Graphs in Microsoft Excel Outline Making Bar Graphs Making Scatter Plots – 1 series Making Scatter Plots – Multiple Series.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  The Independent Variable. A change in this variable affects the y variable. 
The introduction to SPSS Ⅱ.Tables and Graphs for one variable ---Descriptive Statistics & Graphs.
Making and Understanding Graphs What is a graph? A graph is a “picture” of your data.
Graphing Data in Science Looking for a pattern. Why use a graph? Easier to analyze data Visualize patterns in the data Looks for trends.
Plot Using Excel. Select Data Insert →Charts →Scatter.
Chart Components 4.02 Understand charts and graphs used in business Revised by A. Moore
The parts of a Computer Window
Barbara/Pratik/Yu. Outline Matlab desktop M-files Variables Arrays Plots.
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lect 6P. 1Autumn Quarter Graphs and Graphing Lecture 6.
EXCEL CHARTS. CHARTS Charts provide a way of presenting and comparing data in graphical format. Embedded charts or chart sheets Embedded charts are objects.
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lect 7P. 1Autumn Quarter Excel Graphs Lecture 7.
UW CSE 190p Section 7/26, Summer 2012 Dun-Yu Hsiao.
Create a Pie Chart Create Pie Chart, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin A pie chart is useful for.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 4: Intro to Plotting Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
Introduction to Engineering Microsoft Excel 1 Agenda Tables, Charts, & Graphs.
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part I Wednesday 17 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Chapter 15: Spreadsheet and Worksheet Basics Lesson 96: Worksheets with Charts © 2010, 2006 South-Western, Cengage Learning.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part II Friday 19 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers Complex Numbers & 3D Plots – Part 1 Wednesday 05 Nov 2014 EGR 115 Introduction to Computing for Engineers.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 2 in MATLAB Topics Covered: 1.More about 2-D plots  Placing multiple.
Coordinate Plane.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
ENGR 1181 College of Engineering Engineering Education Innovation Center Excel Graphing.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Lab 2 : potting to Matlab Networks.
CS100A, Fall 1998, Lecture 201 CS100A, Fall 1998 Lecture 20, Tuesday Nov 10 More Matlab Concepts: plotting (cont.) 2-D arrays Control structures: while,
Graphing Basics. Why do we graph? Visual representation of data “Short hand” for presenting large amounts of information at once Easier to visualize trends.
Charts MOAC Lesson 6.
Computer Applications. Chart Title Legend Horizontal Axis Title Vertical Axis Title Vertical Y Axis Horizontal X Axis Data Series.
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.
CHART COMPONENTS Excel. COMPONENTS OF CHARTS AND GRAPHS ▪ The y-axis is the left vertical side of the graph. It contains the numerical data. ▪ The x-axis.
Charts MOAC Lesson 6.
Graphing.
Creating a Plot The plot function can take one or more inputs; e.g. plot (x, y) or plot (y) Note that in the two-argument version, the vectors x and.
EXCEL Create a Pie Graph.
Lecture 25.
Lecture 25: Exploring data
How to make great graphs that make sense!
SPREADSHEETS Parts of a graph Data Range X and Y axes
Net 222: Communications and networks fundamentals (Practical Part)
Assignment #12 “Off the chart!”
Tell a Story with the Data
8.04 Spreadsheet Charts 8.04 Spreadsheet Charts.
Plotting Data with MATLAB
Charts MOAC Lesson 6.
Advanced Plotting Techniques
Presentation of Data.
What do I need for Biology?!
Introduction to MATLAB Programming
Plotting Signals in MATLAB
Designing Effective Graphics Using MATLAB
Objective - To graph ordered pairs.
Graphing Introduction Notes
Graphing Notes Graphs and charts are great because they communicate information visually. For this reason, graphs are often used in science, newspapers,
Charts Session 5.
Charts Charts are used to present information so that it can be quickly and easily understood.
Presentation of Data.
Experiment #2 Resistor Statistics
TERMS AND CONDITIONS   These PowerPoint slides are a tool for lecturers, and as such: YOU MAY add content to the slides, delete content from the slides,
Presentation transcript:

EGR 115 Introduction to Computing for Engineers 2D Plotting – Part II Lecture 11 EGR 115 Introduction to Computing for Engineers

EGR 115 Introduction to Computing for Engineers Lecture Outline Annotation of Plots Polar, Bar, Pie, … Plots Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Annotation of Plots Plot 𝑦 𝑡 =10 𝑒 − 𝑡 𝜏 sin 𝜔 𝑡 : Plot limits should be 0<t<2𝜋 (in sec) for the 𝑥-axis and −10<𝑦< 10 for the 𝑦-axis. Overlap three different plots, one for each of 𝜏= 1, 3, 10 . Angular velocity is 𝜔=3 rad/sec. Include the function definition in the legend. Include axis labels and a title Turn on grid lines Colors as shown Publish as ‘Quiz2_Last_First.docx’ Upload to hwk#3 Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Annotation of Plots Editing a Plot Click on “Edit Plot” Right click on the red line and make it dashed Click on the “Show Plot Tools” (far right) icon Select an item in the plot window to see properties of that item. Change the location of the legend to be the lower left corner Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Vertical Bar Graph: MATLAB Code: %% An in class example of Additional Plots x=[1 2 3 4 5 6 7 8]; y = 10 * rand(1, length(x)); % Bar Plot figure bar(x,y) title('Example of a Vertical Bar Plot') xlabel('x') ylabel('y') … Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Horizontal Bar Graph: MATLAB Code: barh(x,y) title('Example of a Horizontal Bar Plot') xlabel('y') ylabel('x') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Stem Graph: MATLAB Code: stem(x,y) title('Example of a Stem Plot') xlabel('x') ylabel('y') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Stair Graph: MATLAB Code: stairs(x,y) title('Example of a Stair Plot') xlabel('x') ylabel('y') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Compass Plot: MATLAB Code: compass(x,y) title('Example of a Compass Plot') xlabel('x') ylabel('y') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots A Pie Graph: Explain the percentages in the chart pie(y) title('Example of a Pie Plot') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots An Exploded Pie Graph: explode = [0 1 1 0 0 1 0 1]; pie(y, explode) title('Example of an Exploded Pie Plot') Lecture 11 EGR 115 Introduction to Computing for Engineers

2D Plotting Additional 2D Plots Generate a plot of (i.e., plot(x, y)): y= 2 − 𝜙 2𝜋 𝑆𝑖𝑛 𝜙 vs 𝑥= 2 − 𝜙 2𝜋 𝐶𝑜𝑠 𝜙 , for 0≤𝜙≤2𝜋 When 𝜙=0 => y = ? and x = ? Reproduce the same as a polar plot: polarplot(theta, r) What is the expression for r and what is  ? Recall that: 𝑥+𝑖 𝑦=𝑟  𝑒 𝑖𝜃 MALAB CODE Lecture 11 EGR 115 Introduction to Computing for Engineers

EGR 115 Introduction to Computing for Engineers Next Lecture Designing The Sudoku Game in MATLAB Lecture 11 EGR 115 Introduction to Computing for Engineers