Mercurial > hg > octave-terminal
changeset 1940:1b193e313c56
[project @ 1996-02-13 16:28:47 by jwe]
author | jwe |
---|---|
date | Tue, 13 Feb 1996 16:28:47 +0000 |
parents | 5cd6fdb77971 |
children | c3ae47c97e53 |
files | src/data.cc |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.cc +++ b/src/data.cc @@ -1036,6 +1036,12 @@ int npoints = 100; + if (nargin != 2 && nargin != 3) + { + print_usage ("linspace"); + return retval; + } + if (nargin == 3) { double n = args(2).double_value (); @@ -1043,8 +1049,6 @@ if (! error_state) npoints = NINT (n); } - else - print_usage ("linspace"); if (! error_state) {