Mercurial > hg > ishara
view general/cellutils/cellrep.m @ 58:ba866ae124c6
Now accepts single color index for all points.
author | samer |
---|---|
date | Fri, 09 Oct 2015 13:01:37 +0100 |
parents | e44f49929e56 |
children |
line wrap: on
line source
function z=cellrep(n,a) % cellrep - Create cell array consisting of copies of give value % % cellrep :: N:natural, A -> {[1,N]->A}. % z=repmat({a},1,n); some Matlabs don't like this c={a}; z=c(ones(1,n));