I am trying to plot a double cone that has a specific aperture/apex angle (say theta) in MATLAB like the sketch below:

My attempt: A cone is described parametrically as:
F(s,t,u) = (u tan(s) cos(t),u tan(s) sin(t),u)
where s runs from 0 to theta (aperture 2*theta), t runs from 0 to 2*pi and u from 0 to h (height).
s = linspace(0,theta);
t = linspace(0,2*pi);
[S,T] = meshgrid(s,t);
X = tan(S).*cos(T);
Y = tan(S).*sin(T);
Z = tan(S);
surf(X,Y,Z)
I wasn't sure how to add u to all this, so I simply did Z = tan(S). This does plot me a cone, but I'm not that sure on what I did here...
Help would be much appreciated.
a=<0,2*Pi>, h=<-H,+H>something like:z=h; r=abs(h)*tan(aperture_half_angle); x=r*cos(a); y=r*sin(a);... not a Matlab coder so there might be deviations like angle units ...