3D plot making smooth

조회 수: 42 (최근 30일)
Mehdi
Mehdi 2012년 3월 11일
댓글: Walter Roberson 2015년 7월 26일
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.

답변 (2개)

Jacob Halbrooks
Jacob Halbrooks 2012년 3월 12일
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 2012년 3월 12일
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
Rey Kelvin Peralta
Rey Kelvin Peralta 2015년 7월 26일
편집: Rey Kelvin Peralta 2015년 7월 26일
i did not receive any notification sir. where is it?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by