[Matlab] - 3D plot Matlab

Hi - im trying to do a 3D plot in Matlab

I have a user defined function of the form:

[Number,~,...] = myfunc(parameter,arg2,...)

The first output argument (Number) is a real number. Parameter is a vector in 2 dimensional space. Can someone tell me how to plot Number on the z - axis given a prespecified set to which parameter belongs.