Wavelet Toolbox Previous page   Next Page
read

Read values of WPTREE

Syntax

Description

VARARGOUT = read(T,VARARGIN) is the most general syntax to read one or more property values from the fields of a WPTREE object .

The different ways to call the read function are

PropValue = read(T,'PropName') or

PropValue = read(T,'PropName','PropParam')

or any combination of the previous syntaxes:

[PropValue1,PropValue2, ...] = read(T,'PropName1','PropParam1','PropName2','PropParam2', ...)

where 'PropParam' is optional.

The valid choices for 'PropName' and 'PropParam' are listed in the table below.

PropName
PropParam
'ent', 'ento' or 'sizes' (see wptree)
Without 'PropParam' or with 'PropParam' = Vector of node indices, PropValue contains the entropy (or optimal entropy, or size) of the tree nodes in ascending node index order.
'cfs'
With 'PropParam' = One terminal node index.
cfs = read(T,'cfs',NODE) is equivalent to
cfs = read(T,'data',NODE) and returns the coefficients of the terminal node NODE.
'entName', 'entPar' 'wavName' (see wptree) or 'allcfs',
Without 'PropParam'.
cfs = read(T,'allcfs') is equivalent to
cfs = read(T,'data'). PropValue contains the desired information in ascending node index order of the tree nodes.
'wfilters' (see wfilters)
Without 'PropParam' or with
'PropParam' = 'd','r','l','h'.
'data'

Without 'PropParam' or with'PropParam' = One terminal node index or 'PropParam' = Column vector of terminal node indices.In this last case, PropValue is a cell array. Without 'PropParam', PropValue contains the coefficients of the tree nodes in ascending node index order.

    Examples

See Also
disp, get, set, wptree, write


Previous page  rbiowavf readtree Next page

© 1994-2005 The MathWorks, Inc.