필터 지우기
필터 지우기

Differences in Wavelet results between code and 'wavemenu' GUI/App

조회 수: 3 (최근 30일)
Robert
Robert 2015년 5월 19일
댓글: Robert 2015년 5월 22일
I have the following small piece of code
[C,L] = wavedec(data,6,'dmey')
It spits out a meyer wavelet decomposition. However, the results differ greatly from when I use the wavelet GUI/App (wavemenu) (see attached plots of D6 using both methods).
The results from the GUI are more reasonable and what I am trying to replicate with the code, I can't understand why the results are so different, am I missing something in the code?
I need to use code, not just the GUI and I need to perform literally hundreds of these decomposition, you can't do that in the GUI.
Thank you in advance for any help! I am a newbie so detail would be appreciated

채택된 답변

Nalini Vishnoi
Nalini Vishnoi 2015년 5월 20일
Hi Robert,
Can you please post your data? I tried to reproduce the same with MATLAB (demo) data using the following code and GUI at the same time:
load sumsin; s = sumsin;
[c,l] = wavedec(s,6,'dmey');
cA3 = appcoef(c,l,'dmey',6);
[cD1,cD2,cD3,cD4,cD5,cD6] = detcoef(c,l,[1,2,3,4,5,6]);
D6 = wrcoef('d',c,l,'dmey',6); % Just reconstructing the details at level 6
figure, plot(D6);
When I compared plot of 'D6' computed using the code and from the GUI, I got identical results. In order to help you, I would need to take a look at the data you are using.
Thanks,
Nalini
  댓글 수: 1
Robert
Robert 2015년 5월 22일
Thank you, I managed to figure it out based on the code you supplied, I wasn't reconstructing the details correctly!
Thanks again

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by