xy2ind edit page

convert x,y coordinates into indeces of ebsd

Syntax

ind = xy2ind(ebsd,x,y)
ebsd(ind)
[i,j] = ind = xy2ind(ebsd,x,y)
ebsd(i,j)

Input

ebsd EBSDsquare
x,y spatial coordinates

Output

ind index to EBSDsquare
i,j indeces to EBSDsquare