comparison scripts/java/helpdlg.m @ 15750:05c781cca57e

use numel instead of length in newly imported java functions
author John W. Eaton <jwe@octave.org>
date Fri, 07 Dec 2012 18:03:01 -0500
parents 54e8c2527a9e
children 0f1a143e5002
comparison
equal deleted inserted replaced
15749:54f7ef3f7e63 15750:05c781cca57e
37 else 37 else
38 error ("helpdlg: character string or cellstr array expected for message"); 38 error ("helpdlg: character string or cellstr array expected for message");
39 endif 39 endif
40 endif 40 endif
41 41
42 switch length (varargin) 42 switch (numel (varargin))
43 case 0 43 case 0
44 title = "Help Dialog"; 44 title = "Help Dialog";
45 45
46 otherwise 46 otherwise
47 if (ischar (varargin {1})) 47 if (ischar (varargin {1}))