Skip to Main Content Skip to Search
Product Documentation

Setting the Locale

Setting Locale on Windows Platforms

MATLAB software uses the system locale and user locale on Windows platforms:

Setting User Locale on Windows 7 Platforms

  1. Select Start -> Control Panel -> Clock, Language, and Region -> Regional and Language.

  2. Open Formats tab.

  3. Select a target locale from the Format: drop-down list.

Setting System Locale on Windows 7 Platforms

  1. Select Start -> Control Panel -> Clock, Language, and Region -> Regional and Language.

  2. Open Administrative tab.

  3. Look in the Language for non-Unicode programs section.

  4. Click Change system locale... button.

  5. Select a target locale from the Current system locale: drop-down list.

  6. Reboot the system.

Setting User Locale on Windows Vista Platforms

  1. Select Start -> Control Panel -> Regional and Language Options.

  2. Open Formats tab.

  3. Select an item from the drop-down list.

Setting System Locale on Windows Vista Platforms

  1. Select Start -> Control Panel -> Regional and Language Options.

  2. Open Administrative tab.

  3. Click Change system locale... button.

  4. Select an item from the drop-down list.

  5. Reboot the system.

Setting User Locale on Windows XP Platforms

  1. Select Start -> Control Panel -> Regional and Language Options.

  2. Open Regional Options tab.

  3. Select an item from the drop-down list.

Setting System Locale on Windows XP Platforms

  1. Select Start -> Control Panel -> Regional and Language Options.

  2. Open Advanced tab.

  3. Select an item from the drop-down list.

  4. Reboot the system.

Setting Locale on Linux Platforms

Linux platforms manage locale settings with six locale categories. These are the same categories used by C standard library functions.

The following locale categories are available:

Setting User Locale and User UI Language

Use the LANG environment variable to specify a single locale for all locale categories. The locale specified with this variable might be partially or entirely over-written by other environment variables.

Use the environment variables LC_CTYPE, LC_COLLATE, LC_TIME, LC_NUMERIC, and LC_MONETARY to specify a locale for a particular category.

Use the LC_ALL environment variable to over-write all locales specified with other environment variables. If a single locale has to be set to all locale categories, use LANG instead of LC_ALL.

Configuring Fonts to Display Asian Characters

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.

Setting Locale on Macintosh Platforms

The Macintosh OS X platform manages the user locale setting and the user UI language setting.

Setting User Locale

  1. Select System Preferences ->Language & Text

  2. Open Formats tab

  3. Select an item from the Region pop-up menu

Setting UI Language

  1. Select System Preferences ->Language & Text

  2. Open Language tab

  3. Drag an item to the top of the Languages list

  


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