changeset 11499:8f23b6757225

Correction to contourc.m
author Michael Godfrey <godfrey@isl.stanford.edu>
date Thu, 13 Jan 2011 02:38:57 -0500
parents 367bfee35ba0
children 7aeb4eb7403f
files scripts/ChangeLog scripts/plot/contourc.m
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-13  Michael Godfrey  <godfrey@isl.stanford.edu>
+
+	* plot/contourc.m: Correct one argument case.
+
 2011-01-12  John W. Eaton  <jwe@octave.org>
 
 	* strings/mat2str.m: Handle logical arguments.  New tests.
--- a/scripts/plot/contourc.m
+++ b/scripts/plot/contourc.m
@@ -65,6 +65,9 @@
   if (nargin == 1)
     vn = 10;
     z = varargin{1};
+    [nr, nc] = size (z);
+    x = 1:nc;
+    y = 1:nr;
   elseif (nargin == 2)
     vn = varargin{2};
     z = varargin{1};