Addressed the issue of properly launching Matlab from terminal