Changeset 93 for trunk/src/get_field
- Timestamp:
- May 27, 2010, 7:25:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field/FFT.m
r89 r93 6 6 return %exit the function 7 7 end 8 8 GUI_input=[]; 9 9 %initiation 10 10 hhget_field=guidata(hget_field); … … 29 29 % get variable 30 30 eval(['Var= Field.' ordinate_name ';']); 31 np=size(Var) ;31 np=size(Var) 32 32 np_freq=floor(np(1)/2); 33 33 dx=1;%default 34 34 dfreq=1/np(1);%default frequency interval (abscissa= array index) 35 sum_data=sum(Var,2); 35 36 if ~isequal(abscissa_name,'') 36 37 eval(['Coord_x= Field.' abscissa_name ';']); 37 ind_select=find(~isinf(Coord_x) );%detect infinite values38 ind_select=find(~isinf(Coord_x)&~isnan(sum_data));%detect infinite values 38 39 Coord_x=Coord_x(ind_select); 39 40 Var=Var(ind_select,:);
Note: See TracChangeset
for help on using the changeset viewer.