changeset 18189:f24d5bd050d9

cell2mat.m: Change error message when input is not a cell array. * cell2mat.m: Change error message when input is not a cell array.
author Rik <rik@octave.org>
date Wed, 01 Jan 2014 18:10:50 -0800
parents f09abe022c96
children 31d8e19a745d
files scripts/general/cell2mat.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/cell2mat.m	Fri Dec 27 00:26:06 2013 -0200
+++ b/scripts/general/cell2mat.m	Wed Jan 01 18:10:50 2014 -0800
@@ -38,7 +38,7 @@
     m = [];
   else
     if (! iscell (c))
-      error ("cell2mat: C is not a cell array");
+      error ("cell2mat: C must be a cell array");
     endif
 
     ## Check first for valid matrix types
@@ -115,7 +115,7 @@
 
 %!error cell2mat ()
 %!error cell2mat (1,2)
-%!error <C is not a cell array> cell2mat ([1,2])
+%!error <C must be a cell array> cell2mat ([1,2])
 %!error <mixed cells, structs, and matrices> cell2mat ({[1], struct()})
 %!error <mixed cells, structs, and matrices> cell2mat ({[1], {1}})
 %!error <mixed cells, structs, and matrices> cell2mat ({struct(), {1}})