MathWorks Interview Question

How would you go about debugging a complex MATLAB script that is producing unexpected results?