add text to the axis

5 次查看(过去 30 天)
i want to add 'noon, sunrise and sunset' at these positons respectivly 13,6,18 below the x-axis with rotation

采纳的回答

Star Strider
Star Strider 2023-7-16
Perhaps this —
t = 0:24;
y = rand(3,25);
figure
plot(t, y)
grid
text([13 6 18], zeros(1,3), {'noon','sunrise','sunset'}, 'Horiz','left', 'Vert','top', 'Rotation',-30)
.
  19 个评论
Star Strider
Star Strider 2023-7-19
As always, my pleasure!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by