Internationalization
Topics
- Set Locale on Microsoft Windows Platforms
MATLAB®reads the user locale and system locale on Windows®platforms.
- Set Locale on Linux Platforms
To specify the locale to be used by MATLAB on Linux®platforms, use the
LANG
environment variable. - Set Locale on macOS Platforms
MATLAB reads the user locale setting on theApplemacOSplatform.
- Locale Setting Concepts for Internationalization
The locale setting defines the language of your user interface and the display formats for information like time, date, and currency.
- Numbers Display Period for Decimal Point
MATLAB reads the user locale for all categories except for the
numeric
category (which is equivalent withLC_NUMERIC
). - Change the MATLAB Desktop Language
MathWorks®provides localized versions of MATLAB for selected non-English platforms.
Troubleshooting
Characters Incorrectly Displayed on Windows Systems
The user locale and system locale must be the same value on the Microsoft®Windows platform.
Plain text files, such as MATLAB scripts or functions, created with one locale setting might not be compatible with a different locale setting.
datenum Might Not Return Correct Value
The results of thedatenum
function vary depending on the locale.
Limitations to International Character Support
MATLAB does not support non 7-bit ASCII characters in several features.
Unexpected Behavior on macOS Platforms
MATLAB ignores the customized portion of the locale setting onmacOSplatforms.
X Servers and International Keyboard Layouts
老X服务器可能不承认国际keyboard layouts and can produce incorrect characters in Simulink®.