Removing data below a polysurface threshold

I have a matrix (XYZ) with which I want to remove data above a certain threshold. The threshold is set by a polysurface. How can I use a polysurface as this threshold?
I don't think this is possible using logical indexing (from by newbie knowledge!) I'm thinking of creating a new matrix (A) by selecting data below the polysurface using something similar to:
if (z(i) < y(%polysurface function%)
then z(i) = A
Is there a better way to do this? Currently I'm still working on a code that's workable!
Thanks!

回答(0 个)

此问题已关闭。

提问:

2016-9-30

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by