Index: /trunk/src/transform_field/signal_filter.m
===================================================================
--- /trunk/src/transform_field/signal_filter.m	(revision 539)
+++ /trunk/src/transform_field/signal_filter.m	(revision 539)
@@ -0,0 +1,31 @@
+% 'FFT': calculate and display 2D spectrum of the input scalar
+%  GUI_input=FFT(hget_field)
+%
+% OUTPUT: 
+% GUI_input: option for display in the GUI get_field
+%
+%INPUT:
+% hget_field: handles of the GUI get_field
+%
+
+function DataOut=signal_filter(DataIn)
+%% set GUI config
+DataOut=[];
+if strcmp(DataIn,'*')   
+    DataOut.InputFieldType='1D';
+    return
+end
+%%%%%%%%%%%%%%%%%%%%%%%%%
+frequency=2*5/54.5;
+frequency=frequency;
+ %d=fdesign.bandpass(0.8*frequency, 0.95*frequency, 1.05*frequency, 1.2*frequency, 60, 1, 60);
+ d=fdesign.bandpass(0.7*frequency, 0.9*frequency, 1.1*frequency, 1.3*frequency, 60, 1, 60);
+ Hd=design(d);% command  fvtool(Hd) to visualize the filter frequency response
+ DataOut=DataIn;
+ if isfield(DataIn,'U')
+ DataOut.U = filter(Hd,DataIn.U);
+ end
+  if isfield(DataIn,'V')
+ DataOut.V = filter(Hd,DataIn.V);
+ end
+
