changeset 12789:482cc053281b

codesprint: Add 2 demos for polar.m * polar.m : Add 2 rose demos.
author Rik <octave@nomad.inbox5.com>
date Sat, 16 Jul 2011 08:16:40 -0700
parents 9f4b48b93f6d
children 5ecdb60ddf0f
files scripts/plot/polar.m
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/polar.m	Sat Jul 16 10:08:38 2011 -0500
+++ b/scripts/plot/polar.m	Sat Jul 16 08:16:40 2011 -0700
@@ -211,3 +211,15 @@
   endif
 
 endfunction
+
+
+%!demo
+%! theta = linspace (0, 2*pi, 1000);
+%! rho = sin (7*theta);
+%! polar (theta, rho);
+
+%!demo
+%! theta = linspace (0, 10*pi, 1000);
+%! rho = sin (5/4*theta);
+%! polar (theta, rho);
+