Mercurial > hg > plml
view matlab/db/dbcellmap.m @ 37:89688ebc447f tip
Deprecating this repository.
author | samer |
---|---|
date | Mon, 05 Jan 2015 17:42:03 +0000 |
parents | a1094b51a6c4 |
children |
line wrap: on
line source
function Y=cellmap(fn,X) % cellmap - Map a function over a cell array % % cellmap :: (A->B, {[Size]->A}) -> {[Size]->B} % preallocate to fix size Y=cell(size(X)); for i=1:numel(X) Y{i}=feval(fn,X{i}); end