フィルターのクリア

How to change the relative scaling of my x-axis

3 ビュー (過去 30 日間)
pete4466
pete4466 2022 年 3 月 20 日
コメント済み: Star Strider 2022 年 3 月 20 日
I am plotting values from a function on the y-axis against an array on the x-axis =
M_varied=[500,1000,2000,4000,8000,16000,32000,64000,128000,256000,512000,1024000,2048000,4096000,8192000,16384000]
The fact that the array values double in size for each index mean that the x-coordinates of my plotted values are very spread out and make my graph difficult to read
How do I change the scaling of the x-axis so that large values are proportionally closer to the smaller values, so the x-axis values aren't so spread out. For example I was hoping to have equally spaced x-ticks of 10^2, 10^3, 10^4 etc..?
Thanks

採用された回答

Star Strider
Star Strider 2022 年 3 月 20 日
See if the semilogx function produces the desired result.
  2 件のコメント
pete4466
pete4466 2022 年 3 月 20 日
That works perfectly thank you
Star Strider
Star Strider 2022 年 3 月 20 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by