How to remove points below a surface in matlab plot?

The above plots contain both points and a surface. The red color points are created from a minimum value to a maximum value in in three coordinate axes using the 'linspace' command and applied meshgrid on them. The surface is created using 'surf' (surf(x,y,z)) command. I only need the points lying above the surface and I need to remove all the points lying below the surface. How to do the above mentioned task?

 採用された回答

KSSV
KSSV 2022 年 4 月 14 日

0 投票

You can go by the z coordinate. Check the z coordinates and remove which ever points are lessthan the z value of the surface.

その他の回答 (0 件)

カテゴリ

質問済み:

2022 年 4 月 14 日

回答済み:

2022 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by