MATLAB newbie here...
I have a STL file, and after importing it into ML, it dumps data into a structure with faces and vertices.
What I'm having problems with is how to use your function with the faces and vertices data I have.
@Jerome, if you'll indulge a little cross-promotion... check out inpolyhedron()... it performs a similar job with a different approach, and I've been looking for some real-world examples with a heavy memory footprint to test it against. It might (no promises!) do well for your input.
@Adam, nice work :)