How to change the date form in the figure from default to yyyy-MM-dd

1 回表示 (過去 30 日間)
Keyu Guo
Keyu Guo 2019 年 8 月 5 日
編集済み: Neuropragmatist 2019 年 8 月 5 日
Hello guys,
Do you know how to change the form fo the date achieved from plotting. I think the problem might be the my system language is Chinese, so how to change it into the form of yyyy-MM-dd or dd/mm/yyyy without changing my system language?
Many Thanks
Keyu
1.jpg

回答 (1 件)

Neuropragmatist
Neuropragmatist 2019 年 8 月 5 日
編集済み: Neuropragmatist 2019 年 8 月 5 日
I don't know about the Chinese system language, so I would probably suggest getting the date in whatever format you want using datestr(now) and then add this to your plot using text or annotation.
You can use text with normalized figure units, so its pretty easy to get it to appear in the same place for every figure.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by