How to make the graphs more smooth in matlab

3 visualizaciones (últimos 30 días)
Debashis Panda
Debashis Panda el 18 de Feb. de 2020
Comentada: Adam el 18 de Feb. de 2020
Hello,
I have plotted some figures in MATLAB 2017a. However, i am observing the quality and resolution of the graphs is too low. The lines are like step functions in the figure (as indicated by red region in attach graph). Anybody please help how to improve its quality.
  3 comentarios
Adam
Adam el 18 de Feb. de 2020
I can't see anything in that image. If the lines are like step functions though then it is because your data is like step functions. You can interpolate data to have more points, but plotting instructions will just plot the points there are.

Iniciar sesión para comentar.

Respuestas (1)

SChow
SChow el 18 de Feb. de 2020
Hi, you may use the print function to save your figure at a desired high resolution
print(gcf,'fname.png','-dpng','-r800');%%%for saving at 800dpi

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by