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.

 채택된 답변

Star Strider
Star Strider 2022년 4월 9일

1 개 추천

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

댓글 수: 9

Good catch, SS...
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개)

dpb
dpb 2022년 4월 9일

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

질문:

2022년 4월 9일

댓글:

2022년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by