source: trunk/src/get_field/filter_band.m @ 36

Last change on this file since 36 was 36, checked in by sommeria, 11 years ago

-get_field: functions called by ACTION in the GUI get_field put in the subdirectory get_field (like for series)
-help put in the subdir uvmat_doc, help call in uvmat, civ, geometry calib modified accordingly

File size: 609 bytes
Line 
1function filter_band(Field,hget_field)
2
3if ~isempty(VarIndex.x)
4    VarName_x=Field.ListVarName{VarIndex.x};
5end
6
7prompt={'selected period (nbre of points)'};
8   def={'10'};
9   dlgTitle='primary period';
10   lineNo=1;
11   answer=inputdlg(prompt,dlgTitle,lineNo,def);
12period=round(str2num(answer{1}))
13filt_vector=ones(1,period)/period;% averaging vector
14VarName_y=Field.ListVarName(VarIndex.y)
15% hfig
16if isempty(str2num(hfig))
17    figure
18else
19figure(str2num(hfig))
20end
21for ivar=1:length(VarName_y)
22    eval(['Var= filter(filt_vector,1,Field.' VarName_y{ivar} ');']);
23
24    plot(Var)
25    grid on
26    hold on
27end
28
29 
Note: See TracBrowser for help on using the repository browser.