Mercurial > hg > octave-nkf
comparison scripts/general/display.m @ 10783:fc9e07fdf9c2
display.m: print usage message if nargin != 1
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 12 Jul 2010 09:53:28 -0400 |
parents | 16f53d29049f |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10782:d1f920d1ce0c | 10783:fc9e07fdf9c2 |
---|---|
31 ## | 31 ## |
32 ## @seealso{class, subsref, subsasgn} | 32 ## @seealso{class, subsref, subsasgn} |
33 ## @end deftypefn | 33 ## @end deftypefn |
34 | 34 |
35 function idx = display (a) | 35 function idx = display (a) |
36 error ("display: not defined for class \"%s\"", class(a)); | 36 if (nargin == 1) |
37 error ("display: not defined for class \"%s\"", class(a)); | |
38 else | |
39 print_usage (); | |
40 endif | |
37 endfunction | 41 endfunction |