I am currently writing a Thesis on a FEM-method in order to simulate flexible multibody systems. I'd like to visualize sample Deformations of a plate in Latex. I am trying to input a vector r = [rx, ry, rz] which contains polynomes in all 3 directions describing the state of the body. I am trying to have it look like a 3D mesh.
I tried to use Matlab to evaluate rx, ry, rz on a mesh in the x/y plane, but I don't know how to use it with latex..
I am trying to archieve something as in the attached image. Any idea how?
Any help is appreciated!

pgfplotssurfcapabilities. https://www.ctan.org/pkg/pgfplots – BambOo Apr 11 '20 at 10:45add commentfunction. – Alessandro Cuttin Apr 17 '20 at 08:20