To start MATLAB in terminal, use command: matlab -nodesktop -nodisplay.
When MATLAB is ran, it can be loaded with different configurations. They depend on startup.m file, that is automatically loaded up from the directory that MATLAB is ran from.
We use "-nodesktop -nodisplay" because otherwise there would be an error that screen is not defined.
Another way to avoid this error is to type "alias matlab='matlab -nosplash'", and then just "matlab".
MATLAB Scripts: we can create files .m and run them from matlab (without .m)
Some useful commands:
which name: shows path to location of script name.m.
format long: sets variable display format (so that they are not displayed rounded-up)