Mercurial > hg > octave-nkf
comparison scripts/plot/refreshdata.m @ 11032:c9b0a75b02e8
Make all regexp in Octave compatible with both POSIX and PCRE.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 28 Sep 2010 09:25:14 -0700 |
parents | 693e22af08ae |
children | c776f063fefe |
comparison
equal
deleted
inserted
replaced
11031:d81b6144c4ba | 11032:c9b0a75b02e8 |
---|---|
78 props = {}; | 78 props = {}; |
79 | 79 |
80 for i = 1 : numel (h) | 80 for i = 1 : numel (h) |
81 obj = get (h (i)); | 81 obj = get (h (i)); |
82 fldnames = fieldnames (obj); | 82 fldnames = fieldnames (obj); |
83 m = regexpi (fieldnames(obj), "^.+datasource$", "match"); | 83 m = regexpi (fieldnames(obj), '^.+datasource$', "match"); |
84 idx = cellfun (@(x) !isempty(x), m); | 84 idx = cellfun (@(x) !isempty(x), m); |
85 if (any (idx)) | 85 if (any (idx)) |
86 tmp = m(idx); | 86 tmp = m(idx); |
87 props = [props; {vertcat(tmp{:})}]; | 87 props = [props; {vertcat(tmp{:})}]; |
88 objs = [objs ; h(i)]; | 88 objs = [objs ; h(i)]; |