Prev: FFTW in mex (compiling errors)
Next: lsqr function
From: Shal on 19 Mar 2010 13:20 "Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <ho0aq5$g84$1(a)fred.mathworks.com>... > > c=num2cell(1:4); > > cr=cellfun(@(x) repmat(x,2,2),c,'uni',false); > > num2cell can be avoided: > cr = arrayfun(@(x) repmat(x,2,2),b,'un',0); > > Slightly faster: > cr2 = arrayfun(@(x) x.*ones(2),b,'un',0); > > Oleg -- Thanks, it did help.
|
Pages: 1 Prev: FFTW in mex (compiling errors) Next: lsqr function |