— Function File: [x, y] = pol2cart (theta, r)
— Function File: [x, y, z] = pol2cart (theta, r, z)
Transform polar or cylindrical to cartesian coordinates.
theta, r (and z) must be of same shape.
theta describes the angle relative to the x - axis.
r is the distance to the z - axis (0, 0, z).