Set Locale on macOS Platforms
On the Apple macOS platform, MATLAB® reads the user locale setting. MATLAB automatically chooses a codeset for each combination of language and territory.
If you customize the locale setting, MATLAB ignores the customized portion. MATLAB ignores the LANG
environment variable and the Terminal
application locale setting.
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.