subsref

(method of grain2d)

access subsets of a GrainSet

Syntax

grains(1:10)          % the 10 first grains of a GrainSet
grains('Fe')          % only Fe grains
grains( ~grains('fe') ) % all grains but Fe
                        logical array with size of the complete
                        GrainSet