How to plot a surf-plot without data extrapoation?

4 次查看(过去 30 天)
I would like to plot the same surf plot but without extrapolating on areas where are not scatter data.
The following script generates the attached figure.
The final plot should interpolate below the black line (only where data exists) like:
  3 个评论
Philippe Corner
Philippe Corner 2020-12-3
编辑:Philippe Corner 2020-12-3
Hi Star Strider, thanks for your help. I edited de question to clarify what I'm trying to do
Philippe Corner
Philippe Corner 2020-12-6
Hi Star Strider.. any idea about how to solve? if you are thinking on anything i'm sure it would be helpfull

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2020-12-4
You have the black line in hand.. make a closed polygon out of it and get the indices of the points lying inside and outside using inpolygon. From the data matrix, make the points lying outside NaN.
  6 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

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