changeset 10439:59967776ed4a

make refreshdata work again
author John W. Eaton <jwe@octave.org>
date Tue, 23 Mar 2010 17:46:26 -0400
parents 44538c4ff9d1
children 146e615b6674
files scripts/ChangeLog scripts/plot/refreshdata.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Mar 23 15:06:33 2010 -0400
+++ b/scripts/ChangeLog	Tue Mar 23 17:46:26 2010 -0400
@@ -1,3 +1,7 @@
+2010-03-23  John W. Eaton  <jwe@octave.org>
+
+	* plot/refreshdata.m: Don't use cell2mat on cell array of cell arrays.
+
 2010-03-22  Soren Hauberg  <hauberg@gmail.com>
 
 	* image/gmap40.m, image/hot.m, image/hsv2rgb.m, image/image.m,
--- a/scripts/plot/refreshdata.m	Tue Mar 23 15:06:33 2010 -0400
+++ b/scripts/plot/refreshdata.m	Tue Mar 23 17:46:26 2010 -0400
@@ -82,7 +82,8 @@
     m = regexpi (fieldnames(obj), "^.+datasource$", "match");
     idx = cellfun (@(x) !isempty(x), m);
     if (any (idx))
-      props = [props; {cell2mat(m(idx))}];
+      tmp = m(idx);
+      props = [props; {vertcat(tmp{:})}];
       objs  = [objs ; h(i)];
     endif
   endfor