フィルターのクリア

Converting a Log Scale Exponent Notation to Decimal Form

19 ビュー (過去 30 日間)
Ashley
Ashley 2014 年 2 月 5 日
回答済み: Azzi Abdelmalek 2014 年 2 月 5 日
Hello, I have a plot, where the y axis is in a linear scale, and the x axis is in log scale. However, Matlab automatically plots the x tick values as exponents, for example, 10^0, 10^1, 10^2, etc. How do I change the x tick values so that they appear as 1, 10, 100, etc.? Thank you your help is much appreciated.
Ashley

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 5 日
set(gca,'xticklabel',arrayfun(@(x) num2str(x),log10(get(gca,'xtick')),'un',0))

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by