Last change
on this file since 146 was
36,
checked in by sommeria, 15 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
|
Rev | Line | |
---|
[36] | 1 | function filter_band(Field,hget_field) |
---|
| 2 | |
---|
| 3 | if ~isempty(VarIndex.x) |
---|
| 4 | VarName_x=Field.ListVarName{VarIndex.x}; |
---|
| 5 | end |
---|
| 6 | |
---|
| 7 | prompt={'selected period (nbre of points)'}; |
---|
| 8 | def={'10'}; |
---|
| 9 | dlgTitle='primary period'; |
---|
| 10 | lineNo=1; |
---|
| 11 | answer=inputdlg(prompt,dlgTitle,lineNo,def); |
---|
| 12 | period=round(str2num(answer{1})) |
---|
| 13 | filt_vector=ones(1,period)/period;% averaging vector |
---|
| 14 | VarName_y=Field.ListVarName(VarIndex.y) |
---|
| 15 | % hfig |
---|
| 16 | if isempty(str2num(hfig)) |
---|
| 17 | figure |
---|
| 18 | else |
---|
| 19 | figure(str2num(hfig)) |
---|
| 20 | end |
---|
| 21 | for 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 |
---|
| 27 | end |
---|
| 28 | |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.