# HG changeset patch # User jwe # Date 1118855035 0 # Node ID c8783205a7c6589d898f5fcc3ff1aac0895d31a1 # Parent 017e427ab4d922718274516bc4d35b8f5d0a2b98 [project @ 2005-06-15 17:03:54 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2005-06-15 Tom Holroyd + + * general/isequal.m: Correct nargin check. + 2005-06-14 John W. Eaton * general/isvector.m: Handle N-d arrays. diff --git a/scripts/general/isequal.m b/scripts/general/isequal.m --- a/scripts/general/isequal.m +++ b/scripts/general/isequal.m @@ -28,7 +28,7 @@ function t = isequal (x, varargin) - if (nargin != 2) + if (nargin < 2) usage ("isequal (x, y, ...)"); endif diff --git a/src/help.cc b/src/help.cc --- a/src/help.cc +++ b/src/help.cc @@ -292,7 +292,14 @@ "Produce 3-D plots using gnuplot-like command syntax.", }, { "if", - "Begin an if block.", }, + "-*- texinfo -*-\n\ +@deffn Keyword if (@var{cond}) @dots{} endif\n\ +@deffnx Keyword if (@var{cond}) @dots{} else @dots{} endif\n\ +@deffnx Keyword if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} endif\n\ +@deffnx Keyword if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} else @dots{} endif\n\ +Begin an if block.\n\ +@end deffn\n\ +@seealso{switch}", }, { "otherwise", "The default statement in a switch block.", },