How to plot a surf-plot without data extrapoation?

조회 수: 2 (최근 30일)
Philippe Corner
Philippe Corner 2020년 12월 3일
편집: Walter Roberson 2021년 8월 8일
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
Philippe Corner
Philippe Corner 2020년 12월 10일
I solved it with you advice. Thanks KSSV
Philippe Corner
Philippe Corner 2021년 8월 8일
편집: Walter Roberson 2021년 8월 8일
Hello KSSV, could you check this question? I think you may help me to find the best way to solve it.. https://it.mathworks.com/matlabcentral/answers/894752-how-to-assign-values-to-a-mesh-based-on-xyzc-points

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

추가 답변 (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