Skip to content

Orientation relationship analysis between neighbour grains #483

Answered by kilir
ACJustin asked this question in Ask Anything
Discussion options

You must be logged in to vote

Hi,
if you supply only one grain to neighbors, it can't have any neighbors.

This should work:

mtexdata titanium
grains = ebsd.calcGrains;

% grain of interest goi;
goi = 50;

% Identification of grain neighbours incl. grains within
[grain_no,grain_pairs] = neighbors(grains)

% goi n-neighbors
grain_no(goi)

% all pairs for goi
pi = any(ismember(grain_pairs,ind),2)

% id of neighbors
neighborsid = unique(grain_pairs(pi,:))
neighborsid(neighborsid==goi)=[];

Cheers,
Rüdiger

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ralfHielscher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #483 on October 16, 2020 15:55.