diff scripts/plot/contour.m @ 7327:9af6f0a214ee

[project @ 2007-12-19 21:39:02 by jwe]
author jwe
date Wed, 19 Dec 2007 21:39:02 +0000
parents 11c5f1ee553e
children 3ed85de5922c
line wrap: on
line diff
--- a/scripts/plot/contour.m
+++ b/scripts/plot/contour.m
@@ -49,7 +49,7 @@
 ## @seealso{contourc, patch, plot}
 ## @end deftypefn
 
-## Author: shaia
+## Author: Shai Ayal <shaiay@users.sourceforge.net>
 
 function [c, h] = contour (varargin)
 
@@ -74,3 +74,9 @@
 %!demo
 %! [x, y, z] = peaks ();
 %! contour (x, y, z);
+
+%!demo
+%! [th, r] = meshgrid (linspace (0, 2*pi, 64), 0:.05:0.9);
+%! [X, Y] = pol2cart (th, r);
+%! f = ((X + i*Y).^4 - 1).^(1/4);
+%! contour(X, Y, abs(f), 16)