Updated Code to interact with Matlab