John
Posts:
6
Registered:
5/10/13
|
|
Re: get struct field including empty values
Posted:
May 13, 2013 4:57 AM
|
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kmln2d$gmj$1@newscl01ah.mathworks.com>... > > >> c = cellfun('isempty',{alldata.correct}) > > > > Equivalent statement is: > > arrayfun(@(s) isempty(s.correct),alldata) > > Not sure which one is faster. Probably the first one. > > Bruno
Thanks for your reply!
cellfun is in fact way faster using an 1 x 30.000 struct. Is there a fast way to inverse the result? In other words, wat is the cellfun equivalent of arrayfun(@(s) ~isempty(s.correct),alldata)
|
|