| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
| On this page… |
|---|
Setting Locale on Windows Platforms |
MATLAB software uses the system locale and user locale on Windows platforms:
Select Start -> Control Panel -> Regional and Language Options.
Open Formats tab.
Select an item from the drop-down list.
Select Start -> Control Panel -> Regional and Language Options.
Open Administrative tab.
Click Change system locale... button.
Select an item from the drop-down list.
Reboot the system.
Note When you change the system locale, you must reboot your system; otherwise, you might see unexpected locale-setting behaviors. |
Select Start -> Control Panel -> Regional and Language Options.
Open Regional Options tab.
Select an item from the drop-down list.
Select Start -> Control Panel -> Regional and Language Options.
Open Advanced tab.
Select an item from the drop-down list.
Reboot the system.
Note When you change the system locale, you must reboot your system; otherwise, you might see unexpected locale-setting behaviors. |
Linux[1] and Sun Solaris™ 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:
LC_CTYPE controls character data manipulations.
LC_COLLATE controls character collation/sorting operations.
LC_TIME controls date/time data formatting or parsing.
LC_NUMERIC controls numeric data formatting or parsing.
LC_MONETARY controls monetary data formatting or parsing.
LC_MESSAGES controls the 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.
The Macintosh OS X platform manages the user locale setting and the user UI language setting.
Select System Preferences ->International
Open Formats tab
Select an item from the Region pop-up menu
Select System Preferences ->International
Open Language tab
Drag an item to the top of the Languages list
[1] Linux is a registered trademark of Linus Torvalds.
![]() | How the MATLAB Process Uses Locale Settings | Calculating Dates in Programs | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |