I wrote a code that would calculate the estimated error when using a corresponding step size number and then plot it in a graph. Everything in it is working fine except for the scaling of the graph.
The values as large as 10 units and get as small as 10^-16 so I am trying to scale the graph in a way that I would be able to see al the data withought the need to zoom in to see the very tiny values. I don't need great accuracy in the graph. It would be amazing if the axis jump from 1*10^0, 1*10^-1, 1*10^-2, 1*10^-3,...etc..., 1*10^-15, 1*10^-16.
Does anyone know how to do that?
Thanks!

1 件のコメント

dpb
dpb 2022 年 4 月 28 日
Look at
semilogy

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

 採用された回答

DGM
DGM 2022 年 4 月 28 日

1 投票

I don't see why you can't just use semilogy() or loglog() to do the plot.
If you're otherwise using some other type of plot, you should be able to set the 'YScale' or 'XScale' property of the axes to 'logarithmic' instead of 'linear'.

1 件のコメント

A.S
A.S 2022 年 4 月 28 日
loglog() was exactly what I needed!
Thank you!!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAxes Appearance についてさらに検索

質問済み:

A.S
2022 年 4 月 28 日

コメント済み:

A.S
2022 年 4 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by