changeset 8847:4629e3925e75

fplot.m: fix nargin check
author John W. Eaton <jwe@octave.org>
date Mon, 23 Feb 2009 16:44:42 -0500
parents 492801cd65eb
children 7557cf34ffcd
files scripts/ChangeLog scripts/plot/fplot.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Feb 23 16:37:40 2009 -0500
+++ b/scripts/ChangeLog	Mon Feb 23 16:44:42 2009 -0500
@@ -1,3 +1,8 @@
+2009-02-23  John W. Eaton  <jwe@octave.org>
+
+	* plot/fplot.m: Fix nargin check.
+	From Joel Parker <Joel.Parker@radiancetech.com>.
+
 2009-02-20  Steffen Groot  <steffen.groot@technolution.eu>
 
 	* plot/__patch__.m: Correct indexing of varargin.
--- a/scripts/plot/fplot.m	Mon Feb 23 16:37:40 2009 -0500
+++ b/scripts/plot/fplot.m	Mon Feb 23 16:44:42 2009 -0500
@@ -40,7 +40,7 @@
 ## Author: Paul Kienzle <pkienzle@users.sf.net>
 
 function fplot (fn, limits, n, linespec)
-  if (nargin < 2 || nargin > 3)
+  if (nargin < 2 || nargin > 4)
     print_usage ();
   endif