Matlab Class Home
Class Outline
Previous Class
Next Class
Evaluation 9
Goal for Week 9: Making graphs of 2D variables
Summary of new tools and commands.
contour
draw lines of constant value through a 2D array of numbers.
clabel
put labels on the lines created by
contour
contourf
draw lines of constant value through a 2D array of numbers and fill area between lines with colors
pcolor
use varying colors to represent the values in a 2D array of numbers
colorbar
add a scale linking colors to contour values
colormap
choose the colors associated with color indexes.
meshgrid
create a 2D array of numbers by copying 2 1D arrays
mesh
show the values of a 2D array in a 3D perspective plot were the values are indicated by height
surf
a 3D presentation like
mesh
with areas filled with colors.
shading
determines how a color changes across a color patch in 3D plots
view
specifies the viewing direction for 3D perspective plots
griddata
converts a set of values at random points into a regular 2D grid
interp2
interpolates values in 2D to a different grid of 2D locations
Tasks for Week 9
Tasks
1
Using contour to plot 2D arrays
2
Controlling the contour lines and adding labels
3
Using arrays to indicate the location of data values being contoured
4
Other ways to display 2D arrays
5
Gridding irregularly distributed data
Matlab Class Home
Class Outline
Previous Class
Next Class
Evaluation 9
email: J. Klinck