Open a terminal and type
mkdir MatlabCourse
cd MatlabCourse
to make a directory and switch to it.
From within the directory you just created, type
matlab &
A MATLAB window should now open. Any files created and saved will now be saved within this directory. Note that the ‘&’ will free the MATLAB window from the terminal; otherwise, if you close the terminal you close MATLAB.
You may wish to create some appropriately named sub-directories to store separately the files from each unit of the course, for example ‘Unit1’.
Note that you can use the mkdir
command from within the MATLAB command window.