From what I could understand, you want to create a graph similar to the one attached.
If so you can use the following functions:
-Surf(x,y,z)
-Mesh(x,y,z)
-And their variants e.g. meshc(x,y,z)
Please note that variable z should be a matrix, with a number of lines equal to the number of elements of x, and with a number of columns equal to the number of elements of y.