hist

(method of grain2d)

plot a grain size histogram

Syntax

hist(grains)
hist(grains,n) % specify the number of bins
% use an arbitrary property for the histogramm
hist(grains,grains.equivalentRadius)
binId = hist(grains) % returns the bin for each grain

Input

grains

grain2d

n

number of bins, default ist 15