text

(method of grain2d)

plot directions at grain centers

Syntax

text(grains(29),'A')
% plot grains with grainId
text(grains,arrayfun(@num2str,grains.id,'uniformOutput',false))

Input

grains

grain2d