This is where navigation should be.

WAVCELL2PACK - Changes wavelet coefficients storing format

Usage

[cvec,Lc] = wavcell2pack(ccell);
[cvec,Lc] = wavcell2pack(ccell,dim);

Input parameters

ccell Coefficients stored in a collumn cell-array.
dim Dimension along which the data were transformed.

Output parameters

cvec Coefficients in packed format.
Lc Vector containing coefficients lengths.

Description

[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.