Main Content

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Visualizzazione di wavelet, pacchetti wavelet e filtri wavelet

Questo esempio mostra come utilizzare wfilters, wavefun e wpfun per ottenere i filtri, le wavelet o i pacchetti wavelet corrispondenti a una particolare famiglia di wavelet. È possibile visualizzare le wavelet separabili bidimensionali con wavefun2.

Ottenere i filtri di scomposizione (analisi) e ricostruzione (sintesi) per i filtri wavelet spline biortogonali con 3 momenti di fuga nel filtro di ricostruzione e 5 momenti di fuga nel filtro di scomposizione.

[LoD,HiD,LoR,HiR] = wfilters('bior3.5');
subplot(2,2,1)
stem(LoD,'markerfacecolor',[0 0 1]); title('Lowpass Decomposition Filter');
subplot(2,2,2)
stem(LoR,'markerfacecolor',[0 0 1]); title('Lowpass Reconstruction Filter');
subplot(2,2,3)
stem(HiD,'markerfacecolor',[0 0 1]); title('Highpass Decomposition Filter');
subplot(2,2,4)
stem(HiR,'markerfacecolor',[0 0 1]); title('Highpass Reconstruction Filter');

Figure contains 4 axes objects. Axes object 1 with title Lowpass Decomposition Filter contains an object of type stem. Axes object 2 with title Lowpass Reconstruction Filter contains an object of type stem. Axes object 3 with title Highpass Decomposition Filter contains an object of type stem. Axes object 4 with title Highpass Reconstruction Filter contains an object of type stem.

Visualizzare la wavelet di Morlet a valore reale. Non è presente una funzione di demoltiplicazione associata.

figure
[psi,xval] = wavefun('morl');
plot(xval,psi,'linewidth',2)
title('$\psi(x) = e^{-x^2/2} \cos{(5x)}$','Interpreter','latex',...
     'fontsize',14);

Figure contains an axes object. The axes object with title psi leftParenthesis x rightParenthesis equals e toThePowerOf minus x Squared baseline slash 2 baseline cos leftParenthesis 5 x rightParenthesis contains an object of type line.

Ottenere i primi 4 pacchetti wavelet per la wavelet minima asimmetrica di Daubechies con 4 momenti di fuga, sym4.

[wpws,x] = wpfun('sym4',4,10);
for nn = 1:size(wpws,1)
    subplot(3,2,nn)
    plot(x,wpws(nn,:))
    axis tight
    title(['W',num2str(nn-1)]);
end

Figure contains 5 axes objects. Axes object 1 with title W0 contains an object of type line. Axes object 2 with title W1 contains an object of type line. Axes object 3 with title W2 contains an object of type line. Axes object 4 with title W3 contains an object of type line. Axes object 5 with title W4 contains an object of type line.

Vedi anche

| | |