Adding custom wavelets to cwt: not working in deployed mode ?

7 次查看(过去 30 天)
Hi, I am using wavemngr to add a custom wavelet and perform cwt. The script works fine when running it from the Matlab window, but not when compiled. Any ideas? Here's part of the code i am using:
wname = 'gabor';
X=xw;Y=yw;
disp('saving gabor mat file')
save('GaborQ', 'X', 'Y')
disp('saved')
wavemngr('add','GaborQ','gabor',4,'','GaborQ.mat',[0 1]);
disp('loaded')
wavemngr('read')
SIG = {x,1/Fs};
disp('using wname')
WAV = {wname,1/n2};
GaborFourierFactor = 2 * pi / (gw * (xmax-xmin));
scales = 1./(Fw.*GaborFourierFactor);
disp('performing cwt')
cwtS2 = cwt(SIG,scales,WAV);
And the resulting output:
saving gabor mat file
saved
loaded
ans =
===================================
Haar haar
Daubechies db
Symlets sym
Coiflets coif
BiorSplines bior
ReverseBior rbio
Meyer meyr
DMeyer dmey
Gaussian gaus
Mexican_hat mexh
Morlet morl
Complex Gaussian cgau
Shannon shan
Frequency B-Spline fbsp
Complex Morlet cmor
===================================
using wname
performing cwt
*************************************************
ERROR ...
-------------------------------------------------
Wavelet test ---> Invalid wavelet name: gabor.
*************************************************
Thanks, Cristi

回答(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