GUI "Cell contents reference from a non-cell array object" error

26 views
Skip to first unread message

econo...@appstate.edu

unread,
Jun 5, 2018, 3:19:55 PM6/5/18
to MTEX
Hello I am trying to create an EBSD GUI.

In the GUI one of the options I am working on would remove Dauphine twin boundaries from the EBSD. The code I am using to remove the twin boundaries works fine in a script but when I plug it into the GUI I get an error.

This is the code I am using to remove the twin boundaries:
% Find all quartz-quartz grain boundaries
gb_qtz = grains.boundary('Quartz-new','Quartz-new');

% Find all boundaries with rotations of 60+/-5 degrees around the c-axis - these are Dauphine twins
rot = rotation('axis',Miller(0,0,0,1,CS{2}),'angle',60*degree);
ind = angle(gb_qtz.misorientation,rot)<5*degree; 
twinBoundary = gb_qtz(ind);

% Merge grains separated by twin boundaries 
[mergedGrains,grains.prop.parentId] = merge(grains,twinBoundary);


Error I am receiving:
Cell contents reference from a non-cell array object.
Error in GUIwow>calc_Callback (line 291)
rot = rotation('axis',Miller(0,0,0,1,CS{2}),'angle',60*degree);

I feel the error has to be GUI related since the code works fine in a separate script. Does anyone know what the issue may be?
Reply all
Reply to author
Forward
0 new messages