diff scripts/set/powerset.m @ 10635:d1978e7364ad

Print name of function in error() string messages.
author Rik <octave@nomad.inbox5.com>
date Sun, 16 May 2010 22:26:54 -0700
parents 60904110acbb
children be55736a0783
line wrap: on
line diff
--- a/scripts/set/powerset.m
+++ b/scripts/set/powerset.m
@@ -31,9 +31,9 @@
 
   if (nargin == 2)
     if (! strcmpi (byrows_arg, "rows"))
-      error ("expecting third argument to be \"rows\"");
+      error ('powerset: expecting third argument to be "rows"');
     elseif (iscell (a))
-      warning ("setdiff: \"rows\" not valid for cell arrays");
+      warning ('powerset: "rows" not valid for cell arrays');
     else
       byrows = true;
     endif