I\'m doing assignment 3 from Andrew Ng\'s Machine Learning course on Coursera. The assignment comes with a .mat containing a 5000x400 matrix (denoted X) with values between 0 an