id2ind edit page

find ind such that grains.id(ind) == id

Syntax

ind = id2ind(grains,id)

Input

grains grain2d
id a list of id's as stored in grains.id

Output

ind a list indices such that grains.id(ind) == id