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개)

카테고리

도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2024년 2월 1일

댓글:

2024년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by