Pregunta de entrevista de MathWorks

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