Plot cylindrical coordinates (3D polar plot)

Hi, is it possible to plot cylindrical coordinates (r, theta, z) in Octave ?
If so, is it possible to plot cylindrical coordinates contours, with colours reflecting the “z” level ?

Question #1: Cylindrical coordinates.

No, there is no direct equivalent of plot3 that accepts cylindrical coordinates. On the other hand, it’s a one-line function call to transform cylindrical to Cartesian coordinates and then use plot3. Try help pol2cart. Complete example:

[X,Y,Z] = pol2cart (theta, r, z);
plot3 (X,Y,Z);

Question #2: contour plots

Depending on what you want there are several plot routines which generate contours. See the documentation for contour, contourf, contour3. As in Question #1, convert cylindrical to Cartesian coordinates and then call the function normally.

Thanks for your reply and advice, rik.