Wavelet decomposition (Meyer) for a signal

6 Ansichten (letzte 30 Tage)
Thomas PLOCOSTE
Thomas PLOCOSTE am 5 Nov. 2019
Bearbeitet: Umeshraja am 21 Sep. 2024
Hi everyone,
I want to decompose a signal with wavelet decomposition. The aim is to compare the IMF from EMD with wavelet decomposition.
Initially i used this function
[c,l] = wavedec(x,n,wname) returns the wavelet decomposition of the 1-D signal x at level n using the wavelet wname. The output decomposition structure consists of the wavelet decomposition vector c and the bookkeeping vector l, which contains the number of coefficients by level.
with:
A: raw data
n: 8
wname: meyer
When i try this i have this message:
[C,S] = wavedec(A,8,meyer);
Not enough input arguments.
Error in meyer (line 34)
tmp = log(N)/log(2);
What is the problem?
Is this the best way to obtain a multi-scale decomposition with Wavelet's method?
Thanks.

Antworten (1)

Umeshraja
Umeshraja am 5 Sep. 2024
Bearbeitet: Umeshraja am 21 Sep. 2024
To decompose a signal using the Meyer wavelet, you should use "dmey" as the wavelet name. Here's an example which include 8-level wavelet decomposition and plotting the coefficients:
load kobe.mat
A=kobe;
n=4;
% Perform wavelet decomposition
[C,S]=wavedec(A,n,"dmey");
%Extract and plot approximation Coefficients
approx = appcoef(C,S,"dmey");
subplot(n+1,1,1)
plot(approx)
title('Approximation Coefficients')
for i = 1:n
% Extract detail coefficients for each level
D = detcoef(C, S, i);
% Plot the detail coefficients
subplot(n+1, 1, i+1);
plot(D);
title(['Detail Coefficients at Level ', num2str(i)]);
end
Additionally, you can use the Wavelet Signal Analyzer app to decompose any 1-D signal. You can launch the app with the following command:
>>waveletSignalAnalyzer
For more information on using the app, please refer to the
To learn more about wavelet decomposition, you can consult the following resources

Kategorien

Mehr zu Wavelet Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by