Diff of /wavelets/wfilt_matlabwtwrapper.m [000000] .. [77a22a]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/wavelets/wfilt_matlabwtwrapper.m
@@ -0,0 +1,34 @@
+function [h,g,a] = wfilt_matlabwtwrapper(wname)
+%WFILT_MATLABWTWRAPPER Wrapper of the Matlab Wavelet Toolbox wfilters function
+%   Usage: [h,g,a] = wfilt_matlabwtwrapper(wname);
+%
+%   '[h,g,a]=wfilt_matlabwtwrapper(wname)` calls Matlab Wavelet Toolbox
+%   function wfilters and passes the parameter *wname*. This function
+%   requires the Matlab Wavelet Toolbox.
+%
+%   Examples:
+%   ---------
+%
+%   Check if the official Matlab Wavelet Toolbox is present then plot frequency 
+%   responses of the `'coif4'` analysis filters:::  
+%
+%      v = ver;
+%      if(any(strcmp('Wavelet Toolbox', {v.Name})))
+%         w = fwtinit({'matlabwtwrapper','coif4'});
+%         wtfftfreqz(w.h);
+%      end
+%
+
+a = [2,2];
+[lo,hi,lo_s,hi_s] = wfilters(wname);
+
+h=cell(2,1);
+h{1} = lo;
+h{2} = hi;
+    
+
+if(nargout>1)
+    g=cell(2,1);
+    g{1} = lo_s;
+    g{2} = hi_s;
+end

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks