error in calcGrains MTEX 5.2.1

62 views
Skip to first unread message

Maël Allard

unread,
Nov 8, 2019, 11:16:48 AM11/8/19
to MTEX
Dear all,

I was trying to run my mtex script (working in mtex 5.2) with the new version 5.2.1, but it returns me an error while attempting to calculate grains.

The way I proceeded is the following:
%% Import Data
ebsd
= EBSD.load(fname,CS,'interface','ctf',...
 
'convertSpatial2EulerReferenceFrame')

% filter out MAD higher than 1 degrees
ebsd_clean
= ebsd(ebsd.mad<=1)

% Segmentation angle to define grains
segAngle
= 10  *degree;

% Grain modelling
[grains,ebsd_clean.grainId,ebsd_clean.mis2mean] = calcGrains(ebsd_clean,'boundary','tight','angle',segAngle)

The error message is:
Undefined function or variable 'qq'.
Error in quaternion/mean (line 26)
  qm
= qq;
Error in quaternion/mean (line 42)
 
[qm,lambda, V] = mean(q.subSet(id),varargin{:});
Error in EBSD/calcGrains (line 71)
  mq
= mean(qind,'robust');


Did something changed in "calcGrains" between 5.2 and 5.2.1 ?

Thanks in advance,

Maël Allard

Ralf Hielscher

unread,
Nov 8, 2019, 11:57:49 AM11/8/19
to MTEX
Thank you for reporting this. It is a typo in quaternion/mean (line 26) the qq should be q.

I will fix this in Matlab 5.2.2.

Ralf.
Reply all
Reply to author
Forward
0 new messages