graph is not smooth
조회 수: 16 (최근 30일)
이전 댓글 표시
Greetings, ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1449607/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1449607/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1449612/image.png)
i am getting this type of wavy graphs while they should be smooth. i will appreciate any help.
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!