SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 9”

Slides:



Advertisements
Similar presentations
1 SESSION 6 Using tables and graphs in project work.
Advertisements

TM Graphical Monitoring Electronic Service Tools.
Introduction to M ATLAB 2 Graphics Ian Brooks Institute for Climate & Atmospheric Science School of Earth & Environment
Motivation The interactive tools: Drawing commands Interactive figure manipulation The programmer point of view: Introduction to objects and their handles.
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.
How to prepare a PowerPoint presentation
Lesson 6: basic plots. Lesson 6 Outline: Plot 1-basic plot commands 1) Figure Line style Marker style Labels and Titles Axes Matlab help LineSpec (colors,
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
Tefko Saracevic, Rutgers University 1 How to print slides from a PowerPoint presentation 1. You can print a presentation while you are online OR you can.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
An introduction to Plotting in MATLAB Rikard Johansson Department of Biomedical Engineering (IMT) Linköping University
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
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()
1 Pertemuan 12 Linking and Embedding, Saving and Exporting Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
Word Tips. Objectives Open and close MS Word Learn the parts of the Word window Learn the toolbar, their buttons, and what they do Create and save a new.
How to create a Splash Screen in MS Access Carlos Coronel.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
HTML presentation Embedding Graphics in Web Pages n HTML uses an empty tag called the (image tag) n n n or n n n Note: all web production tools do insert.
ACTIVITY : 5 BRIDGE COURSE of INFORMATION & COMMUNICATION TECHNOLOGY WORKING WITH WORD PROCESSING SOFTWARE TO PREPARE / FORMAT LETTERS/DOCUMENTS.
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
Creating Charts for the Agency Budget Creating Budget Charts, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
COMP 116: Introduction to Scientific Programming Lecture 5: Plotting, Scripts and publishing.
MATLAB and SimulinkLecture 51 To days Outline Linear Equations ODE Integration Handle Graphics. Exercises on this days topics.
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 6”
Matlab Programming for Engineers Dr. Bashir NOURI Introduction to Matlab Matlab Basics Branching Statements Loops User Defined Functions Additional Data.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room , Chris Hill, Room ,
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
Plot Using Excel. Select Data Insert →Charts →Scatter.
Printing a Presentation Objective: Print a PowerPoint Presentation Objective: Print a PowerPoint Presentation Given: Handout, Lecture, previous notes,
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
Barak Shenhav Early Evolution Course 11 Feb 2001 MATLAB Visualization, Functions & Debugging.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
Computer Information Technology – Section 5-4.  Objectives:  The students will 1. Understand the options on the Printer's Document Properties dialog.
Introduction To Engineering 3-D Solid Primitives Agenda Create Solid Models from Primitive Shapes Print the Final Object for Documentation (through Word)
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 12”
E177, Rules of Interruptibility of Callbacks March 4, Copyright , Andy Packard. This work is licensed.
Figures & Axes, Printing & Saving. Outline Announcements –Homework I on web, due Wed. 5PM by –No lecture on Fri. 10/26, rescheduled to Wed. 10/31.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Lab 2 : potting to Matlab Networks.
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 11”
Beginning Programming for Engineers Animation. Special matrix functions >> clear >> ones(2,3) >> zeros(3,5) >> ones(2) >> zeros(3) >> eye(4) >> magic(4)
1. Explore Interactive GIS 2. Create Map Layouts 3. Reuse a Custom Map Layout 4. Create a Custom Map Template 5. Add a Report to a Layout 6. Add a Graph.
Figures & Axes, Printing & Saving. Outline Announcements –Homework I on web, due Wed. 5PM by e- mail A word on HWI and cookies What happens when you plot.
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.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
Canvas…in the Beginning 1.Overview 2.Developing a Course
Reading and Writing Image Files
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.
Lecture 25.
Ch3 Graphics Overview of Plotting Editing Plots
Lecture 25: Exploring data
Microsoft PowerPoint 2003 Illustrated Introductory
European Computer Driving Licence
Horizontal Centering Using the menu bar
European Computer Driving Licence
How to Customize Your Teens in the Driver Seat Poster
Embedding Graphics in Web Pages
How to Customize Your Teens in the Driver Seat Poster
PLACE YOUR TITLE HERE **Poster Author(s) Go Here
How to Create Tables & Graphs in Excel
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
How to Customize Your Teens in the Driver Seat Poster
Introduction to PowerPoint
Electrical and Computer Engineering Department SUNY – New Paltz
Instructions for using the Miradi Companion Reporting Tool
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 9”

SUNY-New Paltz More graphics Objectives Handle Graphics; editing plots; animation; saving and exporting graphs

SUNY-New Paltz Object Handle h1=figure plot(x) h2=figure plot(y) figure(h1) xlabel(’x’)

SUNY-New Paltz Graphic Handles x = 0:pi/20:2*pi; hsin = plot(x, sin(x)) hold on hx = xlabel(’x’) handle of the Line object handle of the Text object

SUNY-New Paltz functions that return the handle of particular graphics objects 1.gcf: gets the handle of the current figure, 2.gca: gets the handle of the current axes. 3.gco: gets the handle of the current graphics object

SUNY-New Paltz Graphics object properties and how to change them x=0:pi/20:2*pi; hsin=plot(x,sin(x)) set(hsin,’linewidth’,4);

SUNY-New Paltz “get(hsin)” Color = [0 0 1] EraseMode = normal LineStyle = - LineWidth = [4] Marker = none MarkerSize = [6] MarkerEdgeColor = auto MarkerFaceColor = none XData = [ (1 by 41) double array] YData = [ (1 by 41) double array] ZData = [] BeingDeleted = off ButtonDownFcn = Children = [] Clipping = on CreateFcn = DeleteFcn = BusyAction = queue HandleVisibility = on HitTest = on Interruptible = on Parent = [ ] Selected = off SelectionHighlight = on Tag = Type = line UIContextMenu = [] UserData = [] Visible = on

SUNY-New Paltz Editing plots x = 0:pi/20:2*pi; hsin=plot(x,sin(x)) Tools -> Edit Plot

SUNY-New Paltz

Animation for k = 1:16 plot(fft(eye(k+16))) axis equal M(k) = getframe; pause; end movie(M, 5)

SUNY-New Paltz Animation with Handle Graphics x = 0; y = 0; dx = pi/40; p = plot(x, y, ’o’, ’EraseMode’, ’none’); % ’xor’ shows only current point % ’ none’ shows all points axis([0 20*pi -2 2]) for x = dx:dx:20*pi; x = x + dx; y = sin(x); set(p, ’XData’, x, ’YData’, y) drawnow end

SUNY-New Paltz Saving and opening figure files Select Save from the figure window File menu. Make sure the Save as type is.fig. To open a figure file select Open from the File menu

SUNY-New Paltz Printing a graph To print a figure select Print from the figure window File menu. If you have a black and white printer, colored lines and text are ‘dithered to gray’ which may not print very clearly in some cases. In that case select Page Setup from the figure File menu. Select the Lines and Text tab and click on the Black and white option for Convert solid colored lines to:

SUNY-New Paltz Exporting a graph Select Copy Figure from the figure window’s Edit menu Select Export from the figure’s File menu. This action invokes the Export dialogue box. Select a graphics format from the Save as type list, e.g. EMF (enhanced metafiles), JPEG, etc.