Plot Wind Direction versus Wind Speed

This function can plot polar data onto a compass plot. plotWinDirVel calls another small function
1K Downloads
Updated 2 Jan 2012

View License

PLOTWINDIRVEL can be used to plot wind direction versus wind velocity (read strength) on a compass plot.

I have included two scripts to show you how to use the function. If you run the first script make sure the datafile is co-resident with the two MATLAB-files. Here is a snippet from the second script:

[a,b] = plotWinDirVel(wdir,knots, ...
{'Wind Direction and Strength ...(zero degrees is true North)'});

You may need to vertically stretch the plots a little to reveal the heading. There is probably a better way to position the heading so feel free to offer suggestions.

Cite As

Bruce Raine (2026). Plot Wind Direction versus Wind Speed (https://se.mathworks.com/matlabcentral/fileexchange/34425-plot-wind-direction-versus-wind-speed), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0