Added a call for matlab and executing function successfully