There's some odd behavior where if one of the three elements in either vector is 0 the cross product returns an orthogonal vector.
x0 = [x0_18081997(1) x0_18081997(2) x0_18081997(3)];
x1 = [0 x3_18081997(2) x3_18081997(3)];
ab = cross(x0,x1);
dotab = dot(ab,x0)
But if we use the original vector elements, the cross product no longer returns an orthogonal vector.
x0 = [x0_18081997(1) x0_18081997(2) x0_18081997(3)];
x1 = [x3_18081997(1) x3_18081997(2) x3_18081997(3)];
ab = cross(x0,x1);
dotab = dot(ab,x0)
It is assumed that you've included the script in the original question.