Pattern adapted wavelet

1 vue (au cours des 30 derniers jours)
Arun Aniyan
Arun Aniyan le 23 Mar 2012
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 commentaires
Wayne King
Wayne King le 23 Mar 2012
Hi Arun, can you please tell me which version of MATLAB you are using?
Arun Aniyan
Arun Aniyan le 27 Mar 2012
I am using Matlab 7.12.0 (R2011a)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Continuous Wavelet Transforms dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by