EGR 115 Introduction to Computing for Engineers MATLAB Basics 4: Intro to Plotting Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers.

Slides:



Advertisements
Similar presentations
Lab # 03- SS Basic Graphic Commands. Lab Objectives: To understand M-files principle. To plot multiple plots on a single graph. To use different parameters.
Advertisements

Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
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.
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
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.
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Lecture 9 Plotting in 2-D Plotting in 2-D, Plotting Multiple Curves, Plotting with Figures, Plot Settings, Scaling, Legends © 2007 Daniel Valentine. All.
An introduction to Plotting in MATLAB Rikard Johansson Department of Biomedical Engineering (IMT) Linköping University
MATLAB and SimulinkLecture 11 To days Outline  Introduction  MATLAB Desktop  Basic Features  Branching Statements  Loops  Script file / Commando.
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 5”
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()
Use of Matlab for Analysis and Plotting of Accoustic Well Data.
„  1999 BG Mobasseri1 9/18/2015 June 2 GRAPHICS IN MATLAB- PART I BASIC PLOTTING.
Introduction to Engineering MATLAB – 1 Introduction to MATLAB Agenda Introduction Arithmetic Operations MATLAB Windows Command Window Defining Variables.
COMP 116: Introduction to Scientific Programming Lecture 5: Plotting, Scripts and publishing.
Matlab Programming for Engineers Dr. Bashir NOURI Introduction to Matlab Matlab Basics Branching Statements Loops User Defined Functions Additional Data.
Lecture 2 - Matlab Introduction CVEN 302 June 5, 2002.
What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office:
Barbara/Pratik/Yu. Outline Matlab desktop M-files Variables Arrays Plots.
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.
1 DKT 211 Basic Communication Engineering LAB # 1A : (Lecture 1) Introduction to Matlab  Basic Features  Scientific features  Array Operations  Script.
EGR 115 Introduction to Computing for Engineers Introduction to MATLAB Friday 29 August 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,
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
Sept. 26, 2005 Lecture 6 - By Paul Lin 1 CPET 190 Lecture 6 Problem Solving with MATLAB
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part I Wednesday 17 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers Loops and Vectorization – Part 2 Wednesday 15 Oct 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers Designing The Battleship Game in MATLAB Monday 22 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 3: Array Operations Monday 08 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 6: Debugging in MATLAB Monday 15 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers
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 MATLAB Basics 1: Variables & Arrays Wednesday 03 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.
EGR 115 Introduction to Computing for Engineers Complex Numbers & 3D Plots – Part 2 Friday 07 Nov 2014 EGR 115 Introduction to Computing for Engineers.
MATLAB Lecture 1 염익준. Introduction MATLAB (MATrix LABoratory) a special purpose computer program optimized to perform engineering and scientific calculations.
Handle Graphics and 1D Primitives Some Handel graphics.
Introduction to Engineering MATLAB – 9 Plotting - 2 Agenda Formatting plots.
Introduction to MATLAB ENGR 1181 MATLAB 1. MATLAB Built-in Math Functions  Pre-defined in MATLAB ready for use exp(x) – exponential (e x ) log(x) – natural.
EGR 115 Introduction to Computing for Engineers Loops and Vectorization – Part 3 Friday 17 Oct 2014 EGR 115 Introduction to Computing for Engineers.
CS100A, Fall 1998, Lecture 191 CS100A, Fall 1998 Lecture 19, Thursday Nov 05 Matlab Concepts: Matlab arrays Matlab subscripting Matlab plotting.
CS100A, Fall 1998, Lecture 201 CS100A, Fall 1998 Lecture 20, Tuesday Nov 10 More Matlab Concepts: plotting (cont.) 2-D arrays Control structures: while,
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.
Computer Application in Engineering Design
Lecture 25.
ECE 1304 Introduction to Electrical and Computer Engineering
EGR 115 Introduction to Computing for Engineers
Course Information Do not rely on color to distinguish curves (due to black-white printout). Use different line styles to distinguish curves (solid, dashed,
Lecture 25: Exploring data
EGR 115 Introduction to Computing for Engineers
Two-Dimensional Plots
Plotting Multiple Graphs In The Same Plot
Introduction to MATLAB Plotting LAB 3
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
Introduction to MATLAB Programming
Yang-Ming University, Taipei, Taiwan
Plotting Signals in MATLAB
Announcements P3 due today
Histograms are plots that show the distribution of data.
Introduction to OpenGL
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
Presentation transcript:

EGR 115 Introduction to Computing for Engineers MATLAB Basics 4: Intro to Plotting Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers

Lecture Outline Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Intro to Plotting Slide 2 of 11

MATLAB basics Intro to Plotting: Plot Function Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Presenting data in graphical form is very useful. It is quite easy to plot data in MATLAB  The format for the “plot” command is: >> plot(indep_var, dep_var) o Both the independent variable (say, x) and dependent variable (say, y(x)) should be the same size. >> x = [0:0.1:3]; % Independent variable >> y = round(x); % Dependent variable >> plot(x, y) Dep Var Indep Var Slide 3 of 11

MATLAB basics Intro to Plotting: Plot Function Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Controlling the style of the line plot  Changing the line color (to red) >> plot(x, y, 'r'); % Choices: c, y, m, k, r, g, b  Change the linestyle to dashed >> plot(x, y, '--');% Dashed linestyle  Change the line marker to ‘+’ >> plot(x, y, '+');% Marker set to ‘+’ Plot with a magenta colored dotted line and square symbols Slide 4 of 11

MATLAB basics Intro to Plotting: Plot Function Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Superimposing Multiple Plots >> z = floor(x); >> plot(x, y, 'm:s', x, z, 'r-'); >> title('Multiple Plots') >> xlabel('x') >> ylabel('Magnitude') >> legend('round(x)', 'floor(x)'); Multiple Plot Windows  Precede the plot(..) command with the command “figure” >> figure, plot(…) o This will create a new figure window!! Slide 5 of 11

MATLAB basics Additional Info Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 6 of 11

MATLAB basics Additional Info Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 7 of 11

MATLAB basics Additional Info Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers = Slide 8 of 11

MATLAB basics Additional Info Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 9 of 11

MATLAB basics Additional Info Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 10 of 11

Next Lecture Wednesday 10 Sept 2014 EGR 115 Introduction to Computing for Engineers MATLAB Applications  Vector math Slide 11 of 11