x axis label in plot

3 ビュー (過去 30 日間)
Indrani
Indrani 2023 年 6 月 28 日
コメント済み: Indrani 2023 年 6 月 29 日
Hi!
In this graph, I have plotted data for each day from 2015 to 2022. Is there a way to label the x axis with the month and year of plotting?

採用された回答

Cris LaPierre
Cris LaPierre 2023 年 6 月 28 日
Create a vector of x values that are datetimes. Then plot using plot(x,y) syntax.
  3 件のコメント
Cris LaPierre
Cris LaPierre 2023 年 6 月 29 日
Share your code and your data. You can save your variables to a mat file and attach it to your post using the paperclip icon.
Indrani
Indrani 2023 年 6 月 29 日
Thanks, but the issue has been solved!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by