diff scripts/general/common_size.m @ 11188:4cb1522e4d0f

Use function handle as input to cellfun, rather than quoted function name or anonymous function wrapper.
author Rik <octave@nomad.inbox5.com>
date Wed, 03 Nov 2010 17:20:56 -0700
parents 28ef5a31763d
children b1f4bdc276b6
line wrap: on
line diff
--- a/scripts/general/common_size.m	Wed Nov 03 18:02:03 2010 +0800
+++ b/scripts/general/common_size.m	Wed Nov 03 17:20:56 2010 -0700
@@ -53,7 +53,7 @@
   endif
 
   ## Find scalar args.
-  nscal = cellfun ("numel", varargin) != 1;
+  nscal = cellfun (@numel, varargin) != 1;
 
   i = find (nscal, 1);