Significant digits in a matlab figure

109 次查看(过去 30 天)
I have matlab figure, I want to set the significant digits to display 3 on the x-axis, how does one set this when creating a figure in matlab.

回答(1 个)

Les Beckham
Les Beckham 2023-3-1
plot(rand(1,20))
grid on
xtickformat('%.3f')

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by