Make it run in matlab.