Average wind speed histogram
古いコメントを表示
My dataset consists of a time vector (30min step) a vector of wind speeds and a vector of wind directions.
I find the cases when wind direction is, for example, nort-northeast using x=find(WD>0&WD<60
and then i use histogram(T.Hour(x),[0 2 4 6 8 10 12 14 16 18 20 22 24]) to derive to a histogram of absolute frequencies of the north-northeast wind in each of the 2hour bins.
How can i plot a histogram with the average wind speed of this specific wind in each 2hour interval?
採用された回答
その他の回答 (1 件)
José-Luis
2017 年 8 月 31 日
0 投票
You could adapt a rose plot to your need. It is the "standard" way of showing wind direction distributions.
5 件のコメント
Dimitrios Bentis
2017 年 8 月 31 日
José-Luis
2017 年 8 月 31 日
I don't get it. You already have the average and you say you want to calculate it.
Please show some input data and expected output. As a minimum working example please.
Dimitrios Bentis
2017 年 8 月 31 日
José-Luis
2017 年 8 月 31 日
Hard to answer if we don't know what your data look like. How is it stored? How's it structured?
Dimitrios Bentis
2017 年 8 月 31 日
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
