Using MATLAB Graphics     Search    Help Desk 

Compass Plots

The compass function shows vectors emanating from the origin of a graph. The function takes Cartesian coordinates and plots them on a circular grid.

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:



[ Previous | Help Desk | Next ]