findByLocation

(method of grain2d)

select a grain by spatial coordinates

Syntax

id = findByLocation( grains, pos )

Input

grains

grain2d

xy

list of [x(:) y(:)] coordinates, respectively [x(:) y(:) z(:)]

Output

grains

list of grainIds

mple otx2east ot(grains) = ginput(1) = findByLocation(grains,p); ld on, plot(grains(id).boundary,'linecolor','r','lineWidth',2), hold off

See also

EBSD/findByLocation, GrainSet/findByOrientation