[cvec,Lc] = wavcell2pack(ccell); [cvec,Lc] = wavcell2pack(ccell,dim);
ccell | Coefficients stored in a collumn cell-array. |
dim | Dimension along which the data were transformed. |
cvec | Coefficients in packed format. |
Lc | Vector containing coefficients lengths. |
[cvec,Lc] = wavcell2pack(ccell) assembles a column vector or a matrix cvec using elements of the cell-array ccell in the following manner:
cvec(1+sum(Lc(1:j-1)):sum(Lc(1:j),:)=ccell{j};
where Lc is a vector of length numel(ccell) containing number of rows of each element of ccell.
[cvec,Lc] = wavcell2pack(ccell,dim) with dim==2 returns a transposition of the previous.