matlab and Linux Mint 10

Matlab 7.11(R2010b) did not play well with my Linux Mint. First off, it would not recognize special characters in my language (æøå – Norwegian). This is because Matlab does not recognize utf8 in small caps.

LANG=nb_NO.UTF-8 matlab

Second, Matlab would not start from a desktop shortcut. Found solution here:

LANG=nb_NO.UTF-8 matlab -desktop

Or put it in a file and make it executable:

sudo su
echo -e '#!/bin/bashnLANG=nb_NO.UTF-8n/opt/MATLAB/R2010b/bin/matlab -desktop' > /usr/local/bin/matlab
chmod +x /usr/local/bin/matlab