Smoothing the rough edges of a surface plot within a confined domain

조회 수: 9 (최근 30일)
Hussain
Hussain 2011년 9월 1일
댓글: ram vanguri 2016년 4월 27일
Hi,
I am trying to smooth the edges of this surface plot: http://oi55.tinypic.com/118evrm.jpg
The blank regions are set with NaN placeholders, but this results in a zigzag edge. I've tried implementing interp2, griddata, and gridfit, but I haven't been able to use them to account for NaN's in the data set.
I searched the forums and saw some ideas, but again nothing in particular to rough edges caused by NaN's.
Any suggestions/references?
Much appreciated! Hussain

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 1일
Possibly John's inpaint_nans contribution would be useful for your purpose ?
  댓글 수: 2
Hussain
Hussain 2011년 9월 1일
Thanks for the response; I actually came up with a problem specific solution by evaluating the solution further away from places where those spikes occur.
ram vanguri
ram vanguri 2016년 4월 27일
Hi Hussian, I am having the same problem can you help me with the code how to overcome that problem

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

카테고리

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