samer@4: function z=cellrep(n,a) samer@4: % cellrep - Create cell array consisting of copies of give value samer@4: % samer@4: % cellrep :: N:natural, A -> {[1,N]->A}. samer@4: samer@4: % z=repmat({a},1,n); some Matlabs don't like this samer@4: c={a}; z=c(ones(1,n));