Borrar filtros
Borrar filtros

graph is not smooth

32 visualizaciones (últimos 30 días)
Fareeha
Fareeha el 3 de Ag. de 2023
Comentada: Fareeha el 8 de Ag. de 2023
Greetings,
i am getting this type of wavy graphs while they should be smooth. i will appreciate any help.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 3 de Ag. de 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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by