Figure axis: How can I change '0 1 2 3' into '0.0 1.0 2.0 3.0' while keeping ' x 10^9' on the top of y axis ?

3 次查看(过去 30 天)
Check this figure:

采纳的回答

Cris LaPierre
Cris LaPierre 2021-3-1
Use the function ytickformat.
x=-2:2;
y=[0 0.75 1.5 2.25 3]*1e9;
plot(x,y)
ytickformat('%.1f')

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by