Functions | |
function | refreshdata (h, ws) if(nargin |
else | if (iscell(h)) h |
if (any(idx)) props | |
h (i)] | |
if (!isempty(expr)) val | |
if (!isequal(get(objs(i), prop), val)) set(objs(i) | |
!plot (x, y,"ydatasource","y") | |
!refreshdata (gcf(),"caller") | |
Variables | |
ws = "base" | |
endif endif endif | h = findall (h) |
objs = [] | |
props = {} | |
for | i |
fldnames = fieldnames (obj) | |
m = regexpi (fieldnames(obj), "^.+datasource$", "match") | |
idx = cellfun (@(x) !isempty(x), m) | |
prop = props{i}{j}(1:end-6) | |
val | |
endif endif endfor endfor endfunction!demo | !x = 0:0.1:10 |
!y = sin (x) |
!plot | ( | x | , | |
y | , | |||
"ydatasource" | , | |||
"y" | ||||
) |
!refreshdata | ( | gcf() | , | |
"caller" | ||||
) |
h | ( | i | ) |
if | ( | ! | isequalget(objs(i), prop), val | ) |
if | ( | ! | isemptyexpr | ) |
if | ( | any(idx) | ) |
else if | ( | iscell(h) | ) |
endif endif endfor endfor endfunction !demo !x = 0:0.1:10 |
!y = sin (x) |
idx = cellfun (@(x) !isempty(x), m) |
objs = [] |
props = {} |
endif if (!all (ishandle (h)) || !all (strcmp (get (h, "type"), "figure"))) error ("refreshdata else ws = "base" |