Code covered by the BSD License  

Highlights from
Curvilinear Coordinates

from Curvilinear Coordinates by Howard Wilson
Programs are presented which use symbolic math, curvilinear coordinates, and tensor concepts.

[X,Y,Z]=cone0(z,t,p)
function [X,Y,Z]=cone0(z,t,p) 
% [X,Y,Z]=cone0 defines a non-orthogonal
% coordinate system using a conical surface
% with a planar base
X=z.*tan(t).*cos(p); Y=z.*tan(t).*sin(p); Z=z;

Contact us at files@mathworks.com