AE202 Lecture 3 Visualization - AE202 Aerospace Flight...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
AE202 Aerospace Flight Mechanics Lecture 3: Data Visulaization
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Data Visualization Graphs are a useful and powerful way to presenting information MATLAB has many inbuilt functions to creates graphs and manipulate them – 2D • Standard line graphs • Histograms • Pie charts – 3D • Surface plots • Contour plots • 3D bar graphs Can also create animations
Background image of page 2
Simple 2D plot The plot command is used to create simple 2d plots – most basic version – Where x and y are vectors – Example plot(x,y) y=[ 0.1145 0.1790 0.2042 0.2131 0.2399 0.4201 0.4761 0.5519 0.7291 0.9073] x=[1 2 3 4 5 6 7 8 9 10]; plot(x,y)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Options in plot command Plot command has optional options that allow the user to specify the line properties (style, color, weight , etc.). • ‘line specifiers’ define the type and color of the line and markers. • ’PropertyName’,PropertyValue used to specify the line width, marker sizes ,fill colors, etc e.g. to set the line width to 2 – ‘LineWidth’,2 Multiple properties are specified with multiple entries – E.g. ‘LineWidth’,2,’MarkerSize’,10 plot(x,y,’line specifiers’,’PropertyName’,PropertyValue )
Background image of page 4
Line Specifiers 3 types of specifiers: Included in plot command as strings Can specify in any order – e.g Line Style Specifier solid (default) - dashed -- dotted : dash-dot -. Line Color Specifier red r green g blue b cyan c magenta m yellow y black k white w Marker Type Specifier plus sign + circle o asterisk * point . cross x diamond d square s plot(x,y,’c’) plot(x,y,’g--’) plot(x,y,’-.mo’) plot(x,y,’s:y’) plot(x,y,’d’)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Properties LineWidth : Specifies the width (in points) of the line. MarkerEdgeColor: Specifies the color of the marker or the edge color for filled markers (circle, square, diamond, pentagram, hexagram, and the four triangles). MarkerFaceColor: Specifies the color of the face of filled markers. MarkerSize: Specifies the size of the marker in points (must be greater than 0). Can also specify LineStyle , Color and Marker using properties Color can be specified 3 ways – RGB triple [R G B] e.g. [0 0.42 0.57] – short name e.g. „g‟ – long name e.g. „green‟ 0 , , 1 R G B 
Background image of page 6
Plot Example USA population example (data in census.mat) plot(cdate,pop,'--ro','LineWidth',2','markersize',8,'MarkerEdgeColor',[0.25 0.17 0.834])
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/26/2012 for the course AE AE 202 taught by Professor Martin during the Spring '09 term at University of Illinois, Urbana Champaign.

Page1 / 31

AE202 Lecture 3 Visualization - AE202 Aerospace Flight...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online