Create a startup.m file in your matlab directory,
and add any commands that you want
executed automatically whenever you start up Matlab.
In Windows, this file will probably be called
C:\matlab\bin\startup.m
or maybe C:\matlab\R12\work\startup.m.
In Unix, this file should be called ~username/matlab/startup.m.
For example, my Windows startup.m file reads as follows
addpath C:\murphyk\matlab\BNT
add_BNT_to_path
format compact
dbstop if error
dbstop if warning
The format compact command makes the output use less
whitespace. The dbstop commands are explained below.