annotate _FullBNT/KPMtools/isemptycell.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
children
rev   line source
matthiasm@8 1 function E = isemptycell(C)
matthiasm@8 2 % ISEMPTYCELL Apply the isempty function to each element of a cell array
matthiasm@8 3 % E = isemptycell(C)
matthiasm@8 4 %
matthiasm@8 5 % This is equivalent to E = cellfun('isempty', C),
matthiasm@8 6 % where cellfun is a function built-in to matlab version 5.3 or newer.
matthiasm@8 7
matthiasm@8 8 if 0 % all(version('-release') >= 12)
matthiasm@8 9 E = cellfun('isempty', C);
matthiasm@8 10 else
matthiasm@8 11 E = zeros(size(C));
matthiasm@8 12 for i=1:prod(size(C))
matthiasm@8 13 E(i) = isempty(C{i});
matthiasm@8 14 end
matthiasm@8 15 E = logical(E);
matthiasm@8 16 end