diff --git a/easyspin/eulang.m b/easyspin/eulang.m index 05a06875..b51f5707 100644 --- a/easyspin/eulang.m +++ b/easyspin/eulang.m @@ -38,7 +38,7 @@ orthogonalityError = norm(R'*R-eye(3)); if orthogonalityError>1e-2 error('eulang: Rotation matrix is not orthogonal, deviation is %f.',orthogonalityError); - elseif orthogonalityError>1e-8 + elseif orthogonalityError>1e-6 fprintf('eulang: Rotation matrix is not orthogonal, deviation is %g.\n',orthogonalityError); fprintf('eulang: Orthogonalizing using singular-value decomposition (SVD).\n'); [U,~,V] = svd(R);