cellfunc vs cell2mat speed?

Levente Torok toroklev at gmail.com
Tue Sep 9 12:51:17 CDT 2008


Hi All,

I am just wondering why is it so difficult to convert a cell array to matrix?

I used cellfunc on  cell array of 59000 cells which took 7 seconds
but the conversion to a matrix of size
443320 , 7
took about 1080 seconds on my machine.

The cell2mat on the same data took appx 150 times more time.
I am just shocked. Should I replace the original cell2mat with a C routine?

Lev

-- 
Blogger of http://fapuma.blogspot.com


More information about the Help-octave mailing list