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

2 thoughts on “matlab and Linux Mint 10”

  1. Seems like Matlab has pretty crappy support for UTF-8, figures export/save does only work with the formats exported by Matlab, not the file types exported with ghostscript(overview of file types: http://www.mathworks.com/help/techdoc/ref/print.html#f30-534567). A better solution might be adding ISO-8859-1 locales to your system, and use that instead. At least if you work with Windoze XP, which uses ISO-8859-1 encoding.

    Her is how to add locales:
    http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_locales_to_Ubuntu_the_command_line_way

    When you have added support for ISO-8859-1 to your system, drop the .UTF-8 from the LANG variable in the matlab startup script.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>