Navigation

Operators and Keywords

Function List:

C++ API

: ezpolar (f)
: ezpolar (…, dom)
: ezpolar (…, n)
: ezpolar (hax, …)
: h = ezpolar (…)

Plot a 2-D function in polar coordinates.

The function f is a string, inline function, or function handle with a single argument. The expected form of the function is rho = f(theta). By default the plot is over the domain 0 <= theta <= 2*pi with 500 points.

If dom is a two element vector, it represents the minimum and maximum values of theta.

n is a scalar defining the number of points to use in plotting the function.

If the first argument hax is an axes handle, then plot into this axis, rather than the current axes returned by gca.

The optional return value h is a graphics handle to the created plot.

Example:

ezpolar (@(t) sin (5/4 * t), [0, 8*pi]);

See also: polar, ezplot.

Demonstration 1

The following code

 clf;
 ezpolar (@(t) sin (5/4 * t), [0, 8*pi]);

Produces the following figure

Figure 1

Package: octave