matlab gui plot没反应,Plot tree GUI

plot

Plot tree GUI

Syntax

plot(T)

plot(T,FIG)

Description

plot is a graphical

tree-management utility.

plot(T) plots

the tree T.

The figure that contains the tree is a GUI tool. It lets you

change the Node Label to Depth_Position or Index,

and Node Action to Split-Merge or Visualize.

The default values are Depth_Position and Visualize.

You can click the nodes to execute the current Node Action.

plot(T,FIG) plots

the tree T in the figure whose handle is FIG.

This figure was already used to plot a tree, for example using the

command

FIG = plot(T)

After some split or merge actions, you can get the new tree

using its parent figure handle. The following syntax lets you perform

this functionality:

NEWT = plot(T,'read',FIG)

In fact, the first argument is dummy. The most general syntax

is

NEWT = plot(DUMMY,'read',FIG)

where DUMMY is any object parented by an

NTREE object. More generally, DUMMY can be any

object constructor name returning an NTREE parented object. For example:

NEWT = plot(ntree,'read',FIG)

NEWT = plot(dtree,'read',FIG)

NEWT = plot(wptree,'read',FIG)

Examples

% Create a wavelet packets tree (1-D)

load noisbloc

x = noisbloc;

t = wpdec(x,2,'db2');

% Plot tree t.

plot(t)

5248e6c08baec5f713f0a18b2234027b.png

% Change Node Label from Depth_Position to Index.

% Click the node (3). You get the following figure.

e8c5d215c96aa1bb7cc95af2a790df6b.png

Now set the Node Label back to Depth_Position.

Change Node Action to Split-Merge.

Click on the (1,1) node.

69fcc59f1ef194f2ec1fd91c7951f476.png

The above figure now

shows the discrete wavelet transform down to level 2.

% Create a wavelet packets tree (2-D)

load woman2

t = wpdec2(X,1,'sym4');

% Plot tree t.

plot(t)

% Change Node Label from Depth_Position to Index.

% Click the node (1). You get the following figure.

17c6fe6da1a50d60a33f1daeee311fe3.png

Introduced before R2006a

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值