Changeset 1123 for trunk/src/transform_field/FFT2_detrend.m
- Timestamp:
- Aug 21, 2023, 5:53:05 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/FFT2_detrend.m
r1113 r1123 68 68 VarName=DataIn.ListVarName{ivar}; 69 69 z=DataIn.(VarName); 70 z(isnan(z))=0;% set to 0 NaN values 70 71 rhs(1) = sum(sum(x.*z)); rhs(2) = sum(sum(y.*z)); rhs(3) = sum(sum(z)); 71 72 lin_coeff = inv(coeff)*rhs'; … … 75 76 spec2 = spec2(Iy,Ix); 76 77 spec2 = spec2(ss,:); 77 %DataOut.(VarName) = log(spec2);78 DataOut.(VarName) = spec2;78 DataOut.(VarName) = log10(spec2); 79 %DataOut.(VarName) = spec2; 79 80 spec_sum=sum(sum(spec2)); 80 81 kx_mean=sum(sum(spec2.*kx))/spec_sum;
Note: See TracChangeset
for help on using the changeset viewer.