I am tring to show the error by using numerical methods, I got the correct answers but when I try to show that inside a plot it's impossible to understand because the errors are very small (the largest is 10^-4).
How can I present thise graph in a better way? I thoght about logarithm but I don't know how to transfer that.

2 件のコメント

Dyuman Joshi
Dyuman Joshi 2024 年 2 月 1 日
編集済み: Dyuman Joshi 2024 年 2 月 1 日
You can plot the same via semilogy or change the scale of y-axis of the existing plot to log by adding these commands -
ax = gca;
ax.YScale = 'log';
Adjust the y-limits according to requirement.
Liav Levy
Liav Levy 2024 年 2 月 1 日
Thank you!

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

 採用された回答

Star Strider
Star Strider 2024 年 2 月 1 日

0 投票

Use semilogy instead of plot.
imshow(imread('untitled1.png'))
Alternatively, use plot, then:
set(gca,'YScale','log')
Both will have the same effect.
.

2 件のコメント

Liav Levy
Liav Levy 2024 年 2 月 1 日
Thank you!
Star Strider
Star Strider 2024 年 2 月 1 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2021b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by