diff 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
line wrap: on
line diff
--- a/scripts/java/msgbox.m
+++ b/scripts/java/msgbox.m
@@ -42,7 +42,7 @@
     endif
   endif
   
-  switch length (varargin)
+  switch (numel (varargin))
     case 0
       title = "";
       dlg = "emptydlg";