wolffd@0: function E = isemptycell(C) wolffd@0: % ISEMPTYCELL Apply the isempty function to each element of a cell array wolffd@0: % E = isemptycell(C) wolffd@0: % wolffd@0: % This is equivalent to E = cellfun('isempty', C), wolffd@0: % where cellfun is a function built-in to matlab version 5.3 or newer. wolffd@0: wolffd@0: if 0 % all(version('-release') >= 12) wolffd@0: E = cellfun('isempty', C); wolffd@0: else wolffd@0: E = zeros(size(C)); wolffd@0: for i=1:prod(size(C)) wolffd@0: E(i) = isempty(C{i}); wolffd@0: end wolffd@0: E = logical(E); wolffd@0: end