Pattern adapted wavelet

1 次查看(过去 30 天)
Arun Aniyan
Arun Aniyan 2012-3-23
Hi,
I designed a pattern adapted wavelet using pat2cwav , added the new wavelet using wavemngr . After that I tried to do cwt using the new wavelet and I get the following error.
_??? Undefined function or variable 'X'.
Error in ==> wavefun at 151
out2 = X;
Error in ==> intwave at 79
case {4,5} , [psi,xval] = wavefun(wname,iter);
Error in ==> cwt at 147
[val_WAV,xWAV] = intwave(WAV,precis);
Error in ==> matwavlt at 68
p=cwt(sig1,1,'f1');
The following is the piece of code associated
sig=load('Face04fhoGA07.fac-export.mul.bfa');
sig1 = sig(65,:);
locdir = cd;
cd(tempdir);
save n170 x wavlt
wavemngr('add','F1','f1',4,'','n170.mat',[0 1]);
addpath(tempdir,'-begin');
cd(locdir);
p=cwt(sig1,1,'f1');
I understand that the error shows that the wavelet 'f1' is not accessible . I did check the list of wavelets using wavemngr('read'), while trying the debug after running the code, and shows my new wavelet is still there .
I had already created a wavelet and the wavelet is stored in the variable 'wavlt' and other prior calculations in the first part of the code.
The funny thing is that the code ran successfully the first time and I got the expected result, but when I ran afterwards, the above error showed up. Every time I finish running the code , I will delete the new wavelet with wavemngr. So I am not getting why Matlab is behaving so unusual. Anyone got any idea ?
Cheers
- Arun
  2 个评论
Wayne King
Wayne King 2012-3-23
Hi Arun, can you please tell me which version of MATLAB you are using?
Arun Aniyan
Arun Aniyan 2012-3-27
I am using Matlab 7.12.0 (R2011a)

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Continuous Wavelet Transforms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by