Mercurial > octave
comparison scripts/plot/fplot.m @ 11937:a08f22ff5ba1 release-3-0-x
fplot.m: fix nargin check
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 24 Feb 2009 07:48:33 +0100 |
parents | ad3b944fde43 |
children |
comparison
equal
deleted
inserted
replaced
11936:e896fba7e3d4 | 11937:a08f22ff5ba1 |
---|---|
38 ## @end deftypefn | 38 ## @end deftypefn |
39 | 39 |
40 ## Author: Paul Kienzle <pkienzle@users.sf.net> | 40 ## Author: Paul Kienzle <pkienzle@users.sf.net> |
41 | 41 |
42 function fplot (fn, limits, n, linespec) | 42 function fplot (fn, limits, n, linespec) |
43 if (nargin < 2 || nargin > 3) | 43 if (nargin < 2 || nargin > 4) |
44 print_usage (); | 44 print_usage (); |
45 endif | 45 endif |
46 | 46 |
47 if (nargin < 3) | 47 if (nargin < 3) |
48 n = 0.002; | 48 n = 0.002; |