Need help creating wind vectors for various sets of data
Show older comments
Hi, I am working with various sets of wind magnitude and direction and was wondering if there is a way to plot these sets into one graph. The sets I have are arranged into 4 columns: Date, Hour, Wind direction, Wind speed I was thinking of making the dates into the y-axis and the hours into the x-axis so I could compare all wind vectors in one single plot.
Any help with this will be greatly appreciated.
Answers (1)
Andrew Newell
on 3 Apr 2011
Since your wind direction is represented by one number, I assume only the horizontal component is to be plotted. You could use arrows to represent the wind vectors. First, convert wind direction and speed into (say) components North and East. Then use
quiver(Date,Hour,North,East)
Categories
Find more on Vector Fields in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!