fix matlab file