Solve the Problem of Matlab Chinese garbled characters in Linux-Linux general technology-Linux programming and kernel information. The following is a detailed description. Since the graphic interface of Matlab in Linux is written in Java, you only need to display the Chinese language of Java.
1. The JRE directory of my php2007a is/opt/matlab/sys/java/jre/glnx86/jre1.5.0. Determine the JRE directory based on your installation directory and version;
3. Create the directory fallback: $ mkdir fallback;
4. Copy or link the font to the fallback directory:
$ Cp/media/disk/WINDOWS/Fonts/simsun. ttc fallback/I use Windows XP simsun Fonts. You can also use other Chinese Fonts;
5. Go to the fallback directory and run the mkfontscale command;
6. Add the file generated in the previous step to the lib/fonts. dir file. You can use the following command to copy and paste it in the Editor:
$ Cat fallback/fonts. scale> fonts. dir (note that fonts. dir should be set to writable)
7. Now that the Chinese language support for the Java environment of Matlab is installed, configure Matlab;
8. Go to Matlab, select File> Preferences> Fonts and select SimSun font;
9. If no SimSun font is available, add the font in fallback to the readable attribute: $ chmod a + r fallback /*
10. Now, Matlab should be able to display Chinese characters normally.
You can also use the following methods:
First use the command: sudo apt-install sun-java6-jre
To install jre, and then file in the installation path of Matlab, for example,/usr/X11R6/bin/Matlab 7.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.