读
读取WPTREE的值
语法
VARARGOUT =读取(T,VARARGIN)
描述
VARARGOUT =读取(T,VARARGIN)
是从WPTREE对象的字段中读取一个或多个属性值的最通用语法。
调用的不同方法读
函数
PropValue = read(T,')PropName')或PropValue = read(T,')PropName”、“PropParam”)
或前面语法的任何组合:
[PropValue1,PropValue2,] = read(T,'PropName1”、“PropParam1”、“PropName2”、“PropParam2”,)
在哪里“PropParam”
是可选的。
的有效选择“PropName”
而且“PropParam”
都列在本表中。
PropName |
PropParam |
---|---|
“花” ,“ento” 或“大小” (见wptree ) |
没有 |
“慢性疲劳综合症” |
与 |
“entName” ,“entPar” ,“wavName” (见wptree )或“allcfs” |
没有 |
“wfilters” (见wfilters ) |
没有 |
“数据” |
没有 |
例子
创建小波包树。X =兰特(1,512);T = wpdec(x,3,'db3');T = wpjoin(T,[4;5]);情节(t);%单击节点(3,0),(请参阅情节
功能)。l%读取值。sAll = read(t,'size ');sNod = read(t,'sizes',[0,4,5]);eAll = read(t,'ent');eNod = read(t,'ent',[0,4,5]);dAll = read(t,'data');dNod = read(t,'data',[4;5]);[lo_D,hi_D,lo_R,hi_R] = read(t,'wfilters');[lo_D, lo_R hi_D hi_R] =阅读(t,‘wfilters’,‘l’,‘wfilters’,‘h’); [ent,ento,cfs4,cfs5] = read(t,'ent','ento','cfs',4,'cfs',5);