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. http://www.anders.bennehag.com/blog/2010/matlab-and-ubuntu-10-04/
Solution

LANG=nb_NO.UTF-8 matlab

Second, Matlab would not start from a desktop shortcut. Found solution here: http://ubuntuforums.org/showthread.php?t=483965&highlight=matlab

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
exit