# HG changeset patch # User John W. Eaton # Date 1269380786 14400 # Node ID 59967776ed4a89d548f5e3398d2a907388b8c2b7 # Parent 44538c4ff9d1d8789e5828a71a38a9f2ef5131d3 make refreshdata work again diff -r 44538c4ff9d1 -r 59967776ed4a scripts/ChangeLog --- 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 + + * plot/refreshdata.m: Don't use cell2mat on cell array of cell arrays. + 2010-03-22 Soren Hauberg * image/gmap40.m, image/hot.m, image/hsv2rgb.m, image/image.m, diff -r 44538c4ff9d1 -r 59967776ed4a scripts/plot/refreshdata.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