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

14 vues (au cours des 30 derniers jours)
Cristi
Cristi le 6 Juin 2016
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

Réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by