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

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: 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:

    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>