How can I reformat the axes of a graph?

1 回表示 (過去 30 日間)
Elena Vasiljevic
Elena Vasiljevic 2020 年 5 月 6 日
回答済み: Star Strider 2020 年 5 月 6 日
As part of a university report, I am using MATLAB to format the graphs of the experimental data. I've done this by importing the data to workspace and plotting a scatter graph. I would like to reformat the x-axis of the graph to be as shown in the attachment, so that the axis is in the order of powers of 10s. How can this be achieved?

回答 (2 件)

Paresh yeole
Paresh yeole 2020 年 5 月 6 日
Use xlabel :
xlabel('Capacitance')
Refer xlabel documentation for more details,
  1 件のコメント
Elena Vasiljevic
Elena Vasiljevic 2020 年 5 月 6 日
For this question, I am referring to the incrementation used the the x-axis. Do you know how I can adjust the axis, so that it is in the order of 10s?

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


Star Strider
Star Strider 2020 年 5 月 6 日
To plot the x-axis in powers of 10, use the semilogx function. (There are other options as well to produce teh same effect. This is the easiest way to do it.)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by