Significant digits in a matlab figure

109 ビュー (過去 30 日間)
Michael Angeles
Michael Angeles 2023 年 3 月 1 日
回答済み: Les Beckham 2023 年 3 月 1 日
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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by