compass function shows vectors emanating from the origin of a graph. The function takes Cartesian coordinates and plots them on a circular grid.
Example -- Compass Plot of Wind Direction and Speed
This example shows a compass plot indicating the wind direction and strength during a 12-hour period. Two vectors define the wind direction and strength.
Convert the wind direction, given as angles, into radians before converting the wind direction into Cartesian coordinates.
Create text to annotate the graph.
|Direction and Velocity Vector Graphs||Feather Plots|
© 1994-2005 The MathWorks, Inc.