Changes in matlab script