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

The following instructions are based on Version 10.0.16299 Build 16299. Refer to your version of Windows 10 documentation for information about setting region information using the Settings app.

  1. From Time & Language, select Region & language.

  2. Under Related Settings, select Additional date, time, & regional settings.

  3. Select Region to change location.

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

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

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

  7. Exit each dialog box by clicking the OK buttons.

  8. 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.