Problem with calcGrains for one specific phase

51 views
Skip to first unread message

Fred - Mtex

unread,
Aug 10, 2018, 8:21:04 AM8/10/18
to MTEX
Hi evereyone,

I've got a problem with calcGrains, when I try to calculate the grains of only one phase (mtex 5.1.0)

[grains,ebsd('Iron').grainId]=calcGrains(ebsd('Iron'),angle,5*degree)

This work well at home on Matlab R2018a. But at work, on R2014a, I have this error :

Error using EBSD.calcGrains
Too many output arguments.


Is it a known issue of version of Matlab ?

Thanks a lot

Fred

Filippe Ferreira

unread,
Aug 14, 2018, 5:55:11 AM8/14/18
to MTEX
Hi,
angle in your code should be quoted:
[grains,ebsd('Iron').grainId]=calcGrains(ebsd('Iron'),'angle',5*degree)

If this doesn't solve the issue, I believe that dot indexing was first implemented with Matlab 2014b. Maybe this also might be a problem. After importing the EBSD data can you access the properties with
ebsd.prop

Best,
Filippe

Ralf Hielscher

unread,
Aug 20, 2018, 1:11:11 AM8/20/18
to MTEX
If you try

[grains,grainId]=calcGrains(ebsd('Iron'),angle,5*degree)

do you still get the error?

Ralf.

Fred - Mtex

unread,
Aug 21, 2018, 9:18:05 AM8/21/18
to MTEX
Hi Ralf,

Trying this, I get another error (Matlab R2014a) :

Error using angle (line 13)
Not enough input arguments.

Fred

ruediger Kilian

unread,
Aug 21, 2018, 9:22:04 AM8/21/18
to 'Dwayne' via MTEX
Hi Fred,
angle is an option, use 'angle' and try again.
Cheers,
Rüdiger

Fred - Mtex

unread,
Aug 21, 2018, 9:24:42 AM8/21/18
to MTEX
Hi Felipe,

ebsd.prop is working well in R2014a
The unquoted 'angle' was just an error posting my message, but in my code it is quoted. So that's not the problem.
I just want to add that

[grains,ebsd.grainId] = calcGrains(ebsd,'angle',10*degree);

works well

Regards

Fred - Mtex

unread,
Aug 21, 2018, 9:27:11 AM8/21/18
to MTEX
Thanks Rudiger !

Works well with :

[grains,grainId]=calcGrains(ebsd('Iron'),'angle',5*degree)

Thanks a lot !!

Best regards

Fred
Reply all
Reply to author
Forward
0 new messages