I cannot change the datetime x axis locale setting in the plot function.

Hello,
I'm trying to change the datetime plot language in the 2d plot.
Here's my problem.
As you can see, in the first and second plot, the date is shown in Korean.
I want to change it into English format.
But I cannot find how to do it.
Can anyone help me?
I tried Locale Setting change to English in MATLAB General Setting
here, but it didn't change anything.
Thank you for reading this.

 采纳的回答

In the datetime documentation under Input Arguments see 'Locale' (there is no direct llink to it).
Defining:
MyDatetimeArray.Locale = "en_US";
could work.

9 个评论

I tried your suggestion, but this doesn't seem to solve the problem.
Thank's for your reply anyway. :)
That was not what I sugested.
What I suggested would translate to:
datearr.Locale = "en_US";
Try thiat.
.
Following Error Message poped up after executing command.
Would using the MATLAB2019a version be the problem?
I tried the suggestion in MATLAB 2021b, the latest version, but the same error message pops up.
Did I followed your instruction properly as you intended?
Thank you for your kind replies and struggles :).
Yes, you did.
At this point, I suggest that you Contact Support and see if MathWorks can offer any suggestions. I am out of ideas. (Include the URL of this thread in your note to MathWorks so they will know what you already tried.)
As you suggested, I requested MATLAB support.
And here's the support team's reply
Here's the link that the support team attached.
Due to your perspiration, I finally got answer.
Deeply thank you, SS.
Wish you good luck!
As always, my pleasure!
Thank you for following up with MathWorks’ response.

请先登录,再进行评论。

更多回答(1 个)

Since your UI is in Koren, the system LOCALE is set to it.
I don't know all there is to be known about how MATLAB uses the LOCALE, but reading the section in the doc on internatialization, it appears to me you'll probably have to set the OS LOCALE to US and then reboot.
It didn't appear there's a way to have ML use one value while the system is on another.
This issue has to be an absolute nightmare for developers to cope with...

1 个评论

Setting OS Locale to English.... OK thank you for your suggestion.
I'll try this night and respond with the result.
But it seems to be quite a heavy solution though....

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Graphics Objects 的更多信息

产品

版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by