4
|
1 function polar (x1, x2) |
|
2 |
|
3 # usage: polar (theta, rho) |
|
4 # |
|
5 # Make a 2D plot given polar the coordinates theta and rho. |
|
6 # |
|
7 # See also: plot, semilogx, semilogy, loglog, mesh, contour, bar, |
|
8 # stairs, gplot, gsplot, replot, xlabel, ylabel, title |
|
9 |
|
10 set nologscale; |
|
11 set nopolar; |
|
12 |
|
13 if (nargin == 1) |
|
14 polar_int (x1); |
|
15 elseif (nargin == 2) |
|
16 polar_int (x1, x2); |
|
17 else |
|
18 usage = sprintf ("usage: polar (x)\n"); |
|
19 usage = sprintf ("%s polar (x, y)", usage); |
|
20 error (usage); |
|
21 endif |
|
22 |
|
23 endfunction |