octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trouble with refreshdata?


From: Ben Abbott
Subject: trouble with refreshdata?
Date: Mon, 22 Mar 2010 17:47:28 -0400

I have a rather recent build. I tried running the refreshdata demo, but ...

demo refreshdata
refreshdata example 1:
 x = 0:0.1:10;
 y = sin (x);
 plot (x, y, "ydatasource", "y");
 for i = 1 : 100
   pause(0.1)
   y = sin (x + 0.1 * i);
   refreshdata(gcf(), "caller");
 endfor

refreshdata example 1: failed
cell2mat: elements must be numeric, char or logical

Is anyone else seeing this?

The error occurs at line 85.

 79   for i = 1 : numel (h)
 80     obj = get (h (i));
 81     fldnames = fieldnames (obj);
 82     m = regexpi (fieldnames(obj), "^.+datasource$", "match");
 83     idx = cellfun (@(x) !isempty(x), m);
 84     if (any (idx))
 85       props = [props; {cell2mat(m(idx))}];
 86       objs  = [objs ; h(i)];
 87     endif
 88   endfor

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]