knowledge-database (beta)

Current group: comp.soft-sys.matlab

cell array vs matrix

cell array vs matrix  
bsneed1 at myrealbox.com
From:bsneed1 at myrealbox.com
Subject:cell array vs matrix
Date:23 Jan 2005 11:40:53 -0800
The command from Image Toolbox "graycoprops" produces a 1x1 structure
of Text:Numerical value

The command struct2cell "extracts" the numerical values into a 4x1 cell
array.

At this point I must do a bit of math on the values -- average them,
create covariance matrix,etc. May have to do these calculations many
times.

Question: Is it more efficient to convert the cell array to a matrix
(cell2mat) or simply work with the cell array? Or doesn't it matter in
the long run?

Thanks....bill.....
   

Copyright © 2006 knowledge-database   -   All rights reserved