make_matlab.m actually works in matlab