{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

AE202 Lecture 3 Visualization

# AE202 Lecture 3 Visualization - AE202 Aerospace Flight...

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

AE202 Aerospace Flight Mechanics Lecture 3: Data Visulaization

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

View Full Document
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
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)

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

View Full Document
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 )
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’)

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

View Full Document
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
Plot Example USA population example (data in census.mat) plot(cdate,pop,'--ro','LineWidth',2','markersize',8,'MarkerEdgeColor',[0.25 0.17 0.834])

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online