3D plot making smooth

44 visualizaciones (últimos 30 días)
Mehdi
Mehdi el 11 de Mzo. de 2012
Comentada: Walter Roberson el 26 de Jul. de 2015
Dear friends, I have plotted a 3D figure using a matrix elements. I mean the matrix row and column are 'X' and 'Y' and the value of each element is 'Z' axis. The value of elements (Z axis) that are beside each other are close enough but since the 3D curve is discrete, the plot is not very clear. How can I convert it to a smooth plot? Is there any way or command to make it smooth? I can not increase the number of elements in the matrix due to limitations.

Respuestas (2)

Jacob Halbrooks
Jacob Halbrooks el 12 de Mzo. de 2012
It might be helpful to see a code example of what you have tried. Have you tried using SURF to create a surface plot from your data? With a SURF plot, you can use SHADING to control the color shading of your plot. For example, this produces a fairly smooth looking plot of 3D data:
surf(peaks)
shading interp

Stephen
Stephen el 12 de Mzo. de 2012
you can maybe use a cubic polynomial spline to fit your curve and then upsample it to get more points, then plot those. I don't know what you're working with though.
  4 comentarios
Rey Kelvin Peralta
Rey Kelvin Peralta el 26 de Jul. de 2015
Editada: Rey Kelvin Peralta el 26 de Jul. de 2015
i did not receive any notification sir. where is it?

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by