diff src/data.cc @ 5714:24f6a13878c2

[project @ 2006-03-23 21:46:09 by jwe]
author jwe
date Thu, 23 Mar 2006 21:46:10 +0000
parents a8f6903535c9
children 82247c2a7520
line wrap: on
line diff
--- a/src/data.cc
+++ b/src/data.cc
@@ -689,8 +689,10 @@
 
   int n_args = args.length (); 
 
-  if (n_args == 2)
-      retval = args(1);
+  if (n_args == 1)
+    retval = Matrix ();
+  else if (n_args == 2)
+    retval = args(1);
   else if (n_args > 2)
     {
       octave_idx_type dim = args(0).int_value () - 1;