when plotting something the plot becomes messy

x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y)
when i try to plot someting on matlab i always get messy plots. For an example i have used a very basic equation given above and my plot looks something like this,

3 comentarios

Geoff Hayes
Geoff Hayes el 24 de Mzo. de 2020
Eranja - do those "artifacts" just appear on the figure where you are doing the plot or elsewhere in the MATLAB GUI? Which version of MATLAB and operating system are you using?
darova
darova el 24 de Mzo. de 2020
See this answer
Thanks, this method works.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Mzo. de 2020

Comentada:

el 25 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by