Transform Polar to Cartesian coordinates
[x,y,z]=pol2cart(phi,p,z)
azimuth angle
radius in xy plane
x,y,z-coordinates
pol2cart(phi,p,z) transforms corresponding elements of data stored in cylindrical coordinates (angle phi, radius p, height Z) to Cartesian coordinates X,Y,Z.
add sample pgm