Mercurial > hg > octave-lyh
comparison scripts/plot/fplot.m @ 8847:4629e3925e75
fplot.m: fix nargin check
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 23 Feb 2009 16:44:42 -0500 |
parents | cadc73247d65 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8846:492801cd65eb | 8847:4629e3925e75 |
---|---|
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; |