MATLAB: Can you write a vector function

vector function

I am looking to express a parametrized vector function and draw the surface..

Best Answer

You pretty much wrote it yourself:
x = @(u,v) [2-v.*sin(u/2).*sin(u); 2-v.*sin(u/2).*cos(u); v.*cos(u/2)];
See the documentation sections on Anonymous Functions (link) and Vectorization (link) for an extended discussion of both. The documentation for the ndgrid (link) function will also be helpful.