- Timestamp:
- Jan 4, 2011, 7:45:02 PM (14 years ago)
- Location:
- trunk/src/get_field
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field/FFT.m
r93 r170 1 % 'FFT': calculate and display spectrum of the field selected in the GUI get_field 2 % GUI_input=FFT(hget_field) 3 % 4 % OUTPUT: 5 % GUI_input: option for display in the GUI get_field 6 % 7 %INPUT: 8 % hget_field: handles of the GUI get_field 9 % 10 1 11 function GUI_input=FFT(hget_field) 2 12 global spec x_vec … … 9 19 %initiation 10 20 hhget_field=guidata(hget_field); 11 % testinterp=0;12 21 abscissa_list=get(hhget_field.abscissa,'String'); 13 22 val=get(hhget_field.abscissa,'Value'); … … 18 27 val=val(1); %take only the first variable in the list 19 28 20 %ordinate_name=Field.ListVarName{val};21 29 ordinate_name=ordinate_list{val}; 22 30 … … 29 37 % get variable 30 38 eval(['Var= Field.' ordinate_name ';']); 31 np=size(Var) 39 np=size(Var); 32 40 np_freq=floor(np(1)/2); 33 41 dx=1;%default … … 59 67 list_fig=get(hhget_field.list_fig,'String'); 60 68 val=get(hhget_field.list_fig,'Value'); 61 hfig=str2num(list_fig{val}) % chosen figure number from tyhe GUI69 hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI 62 70 if isempty(hfig) 63 71 hfig=figure; -
trunk/src/get_field/PLOT.m
r105 r170 1 % 'PLOT.m': standar display function for the the GUI get_field 2 % GUI_input=PLOT(hget_field) 3 % 4 % OUTPUT: 5 % GUI_input: option for display in the GUI get_field 6 % 7 %INPUT: 8 % hget_field: handles of the GUI get_field 9 % 10 1 11 %--------------------------------------------------------- 2 12 % --- Executes on button press in RUN. … … 8 18 end 9 19 [SubField,errormsg]=read_get_field(hget_field); 10 % SubField.VarAttribute{1}11 % SubField.VarAttribute{2}12 % SubField.VarAttribute{3}13 %14 % SubField.VarDimName{1}15 % SubField.VarDimName{2}16 % SubField.VarDimName{3}17 18 20 if ~isempty(errormsg) 19 21 msgbox_uvmat('ERROR',['error in read_get_field/PLOT input:' errormsg]) -
trunk/src/get_field/filter_band.m
r36 r170 1 % 'filter_band.m': plot a field after band filtering in the GUI get_field 2 % GUI_input=filter_band(hget_field) 3 % 4 % OUTPUT: 5 % GUI_input: option for display in the GUI get_field 6 % 7 %INPUT: 8 % hget_field: handles of the GUI get_field 9 % 1 10 function filter_band(Field,hget_field) 2 11 … … 10 19 lineNo=1; 11 20 answer=inputdlg(prompt,dlgTitle,lineNo,def); 12 period=round(str2num(answer{1})) 21 period=round(str2num(answer{1})); 13 22 filt_vector=ones(1,period)/period;% averaging vector 14 VarName_y=Field.ListVarName(VarIndex.y) 23 VarName_y=Field.ListVarName(VarIndex.y); 15 24 % hfig 16 25 if isempty(str2num(hfig))
Note: See TracChangeset
for help on using the changeset viewer.