y axis values - change the display

3 ビュー (過去 30 日間)
michael
michael 2021 年 10 月 24 日
コメント済み: Simon Chan 2021 年 12 月 5 日
Hi,
I have values on y axis which ranges from 0 to 160000. The value for 80000 (for example) is displayed as 8 (*10^4)
How can I change so that the values would be displayed as non scientific number (i.e 80,000)

回答 (1 件)

Simon Chan
Simon Chan 2021 年 10 月 24 日
編集済み: Simon Chan 2021 年 10 月 24 日
Modify the yticklabel as follows:
% plot something
ax = gca;
yticklabels(arrayfun(@(x) sprintf('%d',x),ax.YTick,'uni',0))
  3 件のコメント
michael
michael 2021 年 12 月 5 日
@Simon Chan Can you please assist?
Simon Chan
Simon Chan 2021 年 12 月 5 日
Sorry, I don't have such Matlab version and hence unable to give you an answer.

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by