frequency of wind speed in a particular direction
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jas singh
am 18 Okt. 2020
Kommentiert: Jas singh
am 13 Nov. 2020
I'm trying to produce a table, which shows the frequency of a particular wind speed in a particular direction (see example in attachment). The left hand column on the example represents the wind speed values and at the top are the directions.
I have the direction and wind speed data collected from an anemometer in two variables in the workspace.
How would I go about producing this table?
Kind regards
0 Kommentare
Akzeptierte Antwort
Chaitanya Mallela
am 21 Okt. 2020
You can use table function to create a table from the workspace variables
T = table(windSpeed,Direction);
Also refer the documentation https://www.mathworks.com/help/matlab/matlab_prog/create-a-table.html for working with tables.
0 Kommentare
Weitere Antworten (1)
Eric Sofen
am 12 Nov. 2020
It sounds like what you want is a 2D histogram where each bin represents the amount of time that the wind was blowing in a particular direction at a particular speed. Check out histcounts2 (and histogram2 for plotting). polarhistogram is also a nice visualization of "wind rose" data.
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!