I have data points of the form {x,y,z}
:
s = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}}
And I need to remove entire data points based on a condition. For example, let's say that I want to remove any data points where z > 6
. The result should be this:
s2 = {{0, 1, 2}, {3, 4, 5}}
How do I do this? I think DeleteCases
might be the way to go, but I'm still fairly inexperienced with Mathematica and am not sure how to use this function to make this work.
Select
? $\endgroup$