1. Method 1
First. sudo gedit /usr/local/MATLAB/R2014a/toolBox/local/startup.m
Second. cd ‘/home/yczhang/Documents/mymatlabPath’
But,sometimes the Method 1 doesn’t work,then we need the Method 2:
2. Method 2
First. sudo gedit /usr/local/MATLAB/R2014a/toolBox/local/matlabrc.m Second. cd ‘/home/yczhang/Documents/mymatlabPath’