Adding custom wavelets to cwt: not working in deployed mode ?
4 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Continuous Wavelet Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!