Updated matlab port tested