graph is not smooth

조회 수: 13 (최근 30일)
Fareeha
Fareeha 2023년 8월 3일
댓글: Fareeha 2023년 8월 8일
Greetings,
i am getting this type of wavy graphs while they should be smooth. i will appreciate any help.

채택된 답변

Cris LaPierre
Cris LaPierre 2023년 8월 3일
Add more points to your line to give it a smoother appearance. Compare the 2 lines below, the first with 5 data points, and the 2nd with 41.
x1 = -2:2;
x2 = -2:0.1:2;
y1 = x1.^2;
y2 = x2.^2;
plot(x1,y1,x2,y2)
legend
  댓글 수: 1
Fareeha
Fareeha 2023년 8월 8일
thank you @@Cris LaPierre it works

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by