graph is not smooth
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fareeha
am 3 Aug. 2023
Kommentiert: Fareeha
am 8 Aug. 2023
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 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 3 Aug. 2023
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!