Pattern adapted wavelet
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!