all the matlab codes for the subtasks of the project