Mercurial > hg > octave-lyh
comparison scripts/java/msgbox.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 |
---|---|
40 else | 40 else |
41 error ("msgbox: character string or cellstr array expected for message"); | 41 error ("msgbox: character string or cellstr array expected for message"); |
42 endif | 42 endif |
43 endif | 43 endif |
44 | 44 |
45 switch length (varargin) | 45 switch (numel (varargin)) |
46 case 0 | 46 case 0 |
47 title = ""; | 47 title = ""; |
48 dlg = "emptydlg"; | 48 dlg = "emptydlg"; |
49 | 49 |
50 case 1 | 50 case 1 |