Hi all, I can use some help here. I want to plot a Catenoid, and find this parametric equations:

but the code can’t plot the Catenoid.
Must be something wrong with how I interpret the parametric equations

using Plots;
#plotlyjs()
function catenoid(c)
v = 2
n = 100
u = range(-π, π; length = n)
x = c*cosh.(v/c) * cos.(u)'
y = c*sinh.(v/c) * sin.(u)'
z = v
return x, y, z
end
my_cg = cgrad([:red,:blue])
surface(catenoid(2), c=my_cg)

I guess it is because z=v is only a 1D array instead of a 2D grid as x and y.

using Plots;
#plotlyjs()
function catenoid(c)
n = 100
v = range(-2,2;length= n)
u = range(-π, π; length = n)
x = c*cosh.(v/c) * cos.(u)'
y = c*sinh.(v/c) * sin.(u)'
z = v* ones(size(u))'
return x, y, z
end
my_cg = cgrad([:red,:blue])
surface(catenoid(2), c=my_cg)