Skip to content

obtaining subgrains Id from specific grains #2243

Discussion options

You must be logged in to vote

I think I finally figured out what you want to achieve. I cleaned up your code a bit. The problem is that the last two lines are not MTEX syntax. Those you need to replace by

subgrains_Alpha_Sec = subgrains( any( Alpha_Sec.checkInside(subgrains.centroid),2))

Your clean code ...

% define crystal symmetry variables
cs_A = ebsd2('Alpha').CS;
cs_B = ebsd2('Beta').CS;

[grains,ebsd2.grainId] = calcGrains(ebsd2,'angle',HAGB);
grains = smooth(grains,5);
G_a = grains('Alpha');

condi = G_a.aspectRatio > 2 &  G_a.grainSize < 100;
condi_2 =  G_a.grainSize < 50;

Alpha_sec_grain_2= G_a(condi_2);
Alpha_sec_grain = G_a(condi);

% assemble all the secondary alpha phases respecting the condition condi o…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@louisMabon
Comment options

Comment options

You must be logged in to vote
5 replies
@louisMabon
Comment options

@louisMabon
Comment options

@louisMabon
Comment options

@ralfHielscher
Comment options

Answer selected by louisMabon
@louisMabon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants