12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

osePurpose2roseAngle histogramSyntaxDescriptionrose(theta)rose(theta,x)rose(theta,nbins)[tout,rout] = rose(...)rose creates an angle histogram, which is a polar plot showing the distributionof values grouped according to their numeric range. Each group is shown as onebin.rose(theta) plots an angle histogram showing the distribution of theta in 20angle bins or less. The vector theta, expressed in radians, determines the anglefrom the origin of each bin. The length of each bin reflects the number ofelements in theta that fall within a group, which ranges from 0 to the greatestnumber of elements deposited in any one bin.rose(theta,x) uses the vector x to specify the number and the locations ofbins. length(x) is the number of bins and the values of x specify the centerangle of each bin. For example, if x is a five-element vector, rose distributesthe elements of theta in five bins centered at the specified x values.rose(theta,nbins) plots nbins equally spaced bins in the range [0, 2*pi].The default is 20.[tout,rout] = rose(...) returns the vectors tout and rout sopolar(tout,rout) generates the histogram for the data. This syntax does notgenerate a plot.ExampleCreate a rose plot showing the distribution of 50 random numbers.theta = 2*pi*rand(1,50);rose(theta)2-423

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!