The first time in Linux installed on the MATLAB r2009a, in order to solve the Chinese garbled problem, refer to the article, the general system may follow the following articles to do, Chinese garbled should be able to solve, but I did not solve, I checked a lot of information, Finally solved the Linux system's Chinese support to solve the garbled problem:
Step One: Modify the/etc/profile file to increase the export LANG=ZH_CN.GBK (possibly ZH_CN. GB18030 also can, but I did not go to verify)
Step Two: Change the lang= "Zh_cn.en" to lang= "ZH_CN in the/etc/sysconfig/i18n file. GB18030 "
Restart the system, so far my matlab garbled problem finally solved
Reference address: http://apps.hi.baidu.com/share/detail/21418017
solve the problem of MATLAB Chinese garbled in Linux
Because of Linux under the GUI of MATLAB is written in Java, so as long as the Java in the Chinese display on the line.
1, I matlab2007a the JRE directory is:/opt/matlab/sys/java/jre/glnx86/jre1.5.0 Please according to your own installation directory and version of the JRE to determine the directory;
2, $ cd/opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/fonts/;
3, the establishment of directory fallback: $ mkdir fallback;
4, copy or link the font to the fallback directory:
$ CP/MEDIA/DISK/WINDOWS/FONTS/SIMSUN.TTC fallback/I use the WINDOWS xp SimSun font, you can also use other support Chinese fonts, [note: I chose Ubuntu's own Wen black, The default store path is/USR/SHARE/FONTS/TRUETYPE/WPY/WQY-ZENHEI.TTC];
5, into the fallback directory, the implementation of Mkfontscale orders;
6, add the files generated in the previous step to the Lib/fonts/fonts.dir file, you can use the following command to complete, of course, you may also copy and paste with the editor [note: I am in the terminal to perform the Gedit fonts.dir command to complete the operation]:
$ cat Fallback/fonts.scale >> Fonts.dir, note that Fonts.dir should be set to writable. [Note: I am not successful with this command, it is estimated to be a writable permission problem, but I do not know how to set the file as writable permission]
7, this MATLAB Java environment in Chinese support installation finished. [Note: I do this step, and then open the MATLAB can already display Chinese, so there is no next to the configuration of Matlab, just a little look at it]
Next Configure Matlab
8, into the MATLAB, select the menu file>>preferences>>fonts select SimSun font on the line;
9, if there is no corresponding (my is SimSun) font, please add the fallback under the readable properties: $ chmod a+r fallback/*
10, so that MATLAB should be able to display the normal Chinese.
You can also use the following methods: [Note: I did not try this method, I do not know if I can succeed, but I still copy it.]
First Use command: sudo apt-install sun-java6-jre
To install the JRE, and then in the MATLAB installation path under the file, such as mine is:/usr/x11r6/bin/matlab7
File add: Eport matlab_java=/usr/lib/jvm/java-6-sun/jre/
Then run the MATLAB in file<<preferences<<fonts selected a Chinese font can be.
Now that the Chinese setup is complete, I have some comments in the previous section explaining the small problems I encountered during the installation and how I solved them, hoping to help the people who read this article.
At this point, my MATLAB installation is finally completed.