Mercurial > hg > octave-terminal
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 +++ b/scripts/ChangeLog @@ -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 +++ b/scripts/plot/refreshdata.m @@ -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