Skip to Main Content Skip to Search
Product Documentation

Troubleshooting I18n Messages and Settings

The term I18n is an abbreviation for internationalization, where 18 stands for the number of letters between the i and the n.

Asian Characters Incorrectly Displayed on Linux Systems

On some Linux systems, to properly display Asian characters in the MATLAB Desktop, you must configure the font with the Java Runtime Environment (JRE). If you previously configured fonts for your system, you must also make the configuration changes for the JRE distributed with MATLAB.

To configure, make a symbolic link between your font and the MATLAB font fallback directory. For example, to use the Kochi font, at the Linux system prompt type:

ln -s /usr/share/fonts/truetype/kochi 
matlabroot/sys/java/jre/glnxa64/jre/lib/fonts/fallback

where matlabroot is the folder where you installed MATLAB.

Alternatively, edit the fontconfig.properties file. See your Java documentation for information about this file.

Characters Incorrectly Displayed on Windows Systems

The user locale and system locale must be the same value on the Microsoft Windows platform. If these values are not the same, you might see garbled text or incorrect characters. For information on controlling these settings, see Setting Locale on Windows Platforms.

datenum Might Not Return Correct Value

To ensure the correct calculation of functions using date values associated with files and folders, replace datenum function calls with the use of the dir function datenum field.

For example, look at the modification date of your MATLAB license.txt file:

cd(matlabroot)
f=dir('license.txt')

MATLAB displays information similar to:

f = 
       name: 'license.txt'
       date: '10-May-2007 17:48:22'
      bytes: 5124
      isdir: 0
    datenum: 7.3317e+005

If your code uses the date field of the dir command, similar to:

n=datenum(f.date);

replace it with the datenum field:

n=f.datenum;

Numbers Display Period for Decimal Point

MATLAB uses a period for a decimal point, regardless of the format specified by the user locale. For example, the value of pi can be displayed as 3,1416 or 3.1416, depending on the format used by a locale. MATLAB always displays 3.1416.

The MATLAB language reserves the use of commas to the cases described in the Comma — , topic of the Programming Fundamentals Symbol Reference.

MATLAB Displays Messages in English

MATLAB displays messages in English, regardless of the UI language setting, except when running in a Japanese Microsoft Windows environment.

File or Folder Names Incorrectly Displayed

On Windows and Linux platforms, characters used in file or folder names must be in the supported character set. See Supported Character Set in How the MATLAB Process Uses Locale Settings.

On Macintosh platforms, for files and folders used by MATLAB, characters in the file or folder name must be in the 7-bit ASCII character set.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS