What do you want to do?
I want to translate an EBSD map xy coordinates to very far from zero to match some other global coordinate frame on my sample.
I found a bug when trying to update the unit cell where the step size changes I can reproduce it with an example dataset, code below.
I think it comes from line 42 in calcUnitCell:
because uniquetol uses a tolerance that multiplies by the xy values it ended up deleting lots of datapoints that were not duplicates.
% remove dublicates from the coordinates
xy = uniquetol(xy,0.01/sqrt(size(xy,1)),'ByRows',true);
For the moment I can guarantee I have no duplicate xy points so fixed by just commenting out that line, not sure now how to fix it for the general case?
What do you want to do? I want to translate an EBSD map xy coordinates to very far from zero to match some other global coordinate frame on my sample.
I found a bug when trying to update the unit cell where the step size changes I can reproduce it with an example dataset, code below.
I think it comes from line 42 in calcUnitCell: because uniquetol uses a tolerance that multiplies by the xy values it ended up deleting lots of datapoints that were not duplicates.
For the moment I can guarantee I have no duplicate xy points so fixed by just commenting out that line, not sure now how to fix it for the general case?
What code do you use?
What result do you get
What result do you expect
What MTEX version do you use? 5.8.1