Dear Rüdiger,
Thank you for your warm reply.
1# I used this command "plot(grains,grain_averaged_gnd) ",but error happens as follows:
Error using grain2d/plot (line 54)
Number of grains must be the same as the number of data
There exist 2193 grains. But when I use the command "[~,~,eindex] = unique(ebsd.grainId);
grain_averaged_gnd = accumarray(eindex,gnd,[],@nanmean); " to produce a dataset of grain_averaged_gnd, there are 39687 data. the former 2193 data have real numbers, and the remaining data are all NaN. Why ?
2# If it is desirable to remove
all boundary grains to attain a data set containing grain_averaged_gnd , corresponding grain diameter(size), and corresponding grain ID, how should I deal with? could you give me an example?
Thank you very much for the aforementioned questions!!
Best regards
Huihui