Compiling matlab to a standalone with no display option
You might often want to compile matlab files to a standalone executable using the mcc command. However, by default you will obtain annoying warning messages about no display being available. To avoid these messages you should use the compiler directive -R
Before Matlab 2010b
mcc -R -nodisplay ...
For Matlab 2010b, although the documentation says it should be the same it isnt. You need to drop the - . i.e.