このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
wpcoef
ウェーブレット パケット係数
説明
wpcoef
は、1 次元または 2 次元のウェーブレット パケット解析関数です。
例
ウェーブレット パケット係数の取得
1 次元信号を読み込みます。現在の拡張モードを保存します。
load noisdopp x = noisdopp; origMode = dwtmode('status','nodisp');
dwtmode
を使用して拡張モードをゼロ パディングに変更します。db1
ウェーブレットを使用して、信号のレベル 3 ウェーブレット パケット分解に対応するウェーブレット パケット ツリー オブジェクトを取得します。ツリーをプロットします。
dwtmode('zpd','nodisp') wpt = wpdec(x,3,"db1"); plot(wpt)
ノード (3,0) で係数を取得します。信号と係数をプロットします。
cfs = wpcoef(wpt,[3 0]); subplot(2,1,1) plot(x) title('Signal') axis tight subplot(2,1,2) plot(cfs) title('Packet (3,0) Coefficients') axis tight
イメージを読み込みます。sym4
ウェーブレットを使用して、イメージのレベル 1 ウェーブレット パケット分解に対応するウェーブレット パケット ツリーを取得します。
load woman2 t = wpdec2(X,1,'sym4');
ツリーをプロットします。
plot(t)
ノード (1,0) で係数を取得します。係数をプロットします。
cfs = wpcoef(t,[1 0]);
figure
imagesc(cfs)
title('Packet (1,0) Coefficients')
colormap(pink)
拡張モードを元の設定に戻します。
dwtmode(origMode,'nodisp')
入力引数
出力引数
x
— ノード係数
ベクトル | 行列
ノード係数。ベクトルまたは行列として返されます。
データ型: double
バージョン履歴
R2006a より前に導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)