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

5 visualizaciones (últimos 30 días)
Hussain
Hussain el 1 de Sept. de 2011
Comentada: ram vanguri el 27 de Abr. de 2016
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

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Sept. de 2011
Possibly John's inpaint_nans contribution would be useful for your purpose ?
  2 comentarios
Hussain
Hussain el 1 de Sept. de 2011
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 el 27 de Abr. de 2016
Hi Hussian, I am having the same problem can you help me with the code how to overcome that problem

Iniciar sesión para comentar.

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by