Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Set Locale on Windows Platforms

MATLAB® reads the user locale and system locale on Windows® platforms. The user locale and system locale must be the same value. If these values are not the same, you might see garbled text or incorrectly displayed characters.

MATLAB does not support every locale setting. If your locale is not supported, MATLAB uses the default locale en_US_POSIX.US-ASCII, also known as C locale.

When you change the system locale, restart your system; otherwise, you might see unexpected behaviors.

Locale on Windows 10 Platforms

To open the Control Panel, use Microsoft® Windows 10 documentation.

  1. From Clock, Language, and Region, select Change date, time or number formats.

  2. On the Formats tab, select a target locale from the Format drop-down list, and then click Apply. This action sets the user locale.

  3. On the Administrative tab, click the Change system locale... button.

  4. Select a target locale from the Current system locale drop-down list. This action sets the system locale.

  5. Exit each dialog box by clicking the Ok buttons.

  6. Restart the system.

Locale on Windows 8 Platforms

To open the Control Panel, use Microsoft Windows 8 documentation.

User Locale

  1. From the Control Panel, select Clock, Language, and Region > Region.

  2. Open Formats tab.

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

System Locale

  1. From the Control Panel, select Clock, Language, and Region > Region.

  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. Restart the system.

Locale on Windows 7 Platforms

User Locale

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

  2. Open Formats tab.

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

System Locale

  1. Select Start > Control Panel > Clock, Language, and Region > Region 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. Restart the system.

Was this topic helpful?