Removed Rest definition in the file and added it to the matlab script.