Need help creating wind vectors for various sets of data
Mostrar comentarios más antiguos
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.
Respuestas (1)
Andrew Newell
el 3 de Abr. de 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)
Categorías
Más información sobre Vector Fields en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!