Wind_rose

版本 1.4.0.0 (5.2 KB) 作者: M MA
Wind rose of direction and intensity
26.8K 次下载
更新时间 2010/6/17

查看许可证

Syntax:
[HANDLES,DATA] = WIND_ROSE(D,I,VARARGIN)

Inputs:
D Directions
I Intensities
VARARGIN:
-dtype, type of input directions D, standard or meteo,
if meteo, the conversion dnew=mod(-90-D,360) is done;
if not meteo, standard is used (default)
-n, number of D subdivisons
-di, intensities subdivisons, default is automatic
-ci, percentage circles to draw, default is automatic
-labtitle, main title
-lablegend, legend title
-cmap, colormap [jet]
-colors, to use instead of colormap, for each di
-quad, Quadrant to show percentages [1]
-ri, empty internal radius, relative to size of higher
percentage [1/30]
-legtype, legend type: 1, continuous, 2, separated boxes [2]
-bcolor, full rectangle border color ['none']
-lcolor, line colors for axes and circles ['k']
-percbg, percentage labels bg ['w']
-ax, to place wind rose on pervious axes, the input for ax
must be [theax x y width], where theax is the previous
axes, x and y are the location and width is the wind
rose width relative to theax width (default=1/5)
-parent, by default a new axes is created unless parent is
given, ex, parent may be a subplot
-iflip, flip the intensities as they go outward radially, ie,
highest values are placed nearest the origin [{0} 1]
-inorm, normalize intensities, means all angles will have 100%
-incout, if 0, data outside di limits will not be used [0 {1}]

Output:
HANDLES Handles of all lines, fills, texts
DATA Wind rose occurences per direction and intensity

引用格式

M MA (2024). Wind_rose (https://www.mathworks.com/matlabcentral/fileexchange/17748-wind_rose), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polar Plots 的更多信息
致谢

启发作品: Wind Rose / Energy Rose, Wind Rose

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Small Bug fix. The percentages where wrong when using intensities equal to the lower value of the highest intensity subdivision, basically an academic case.

1.3.0.0

Small Bug fix. The percentages where wrong when using intensities equal to the lower value of the highest intensity subdivision, basically an academic case.

1.2.0.0

Added incout option: if 0, data outside di limits will not be considered. By default is 1.

1.1.0.0

-Added varargin option parent, to select the axes/subplot where to place the wind rose
- bug fix: when di, was not provided the auto mode could, in some cases, merge the data of the two smallest subdivisions

1.0.0.0

Added varargin iflip:
flip the intensities as they go outward radially, ie, highest values are placed nearest the origin [{0} 1]