Code covered by the BSD License
-
DemoResEnhanceFactor2(n,h)
Re-draw graph when factor2 slider is changed
-
Enhancedsignal=enhance(signal...
Resolution enhancement function by derivative method. the
-
ResEnhance2F1(n,h)
Re-draw graph when factor1 slider is changed
-
ResEnhance2F3(n,h)
Re-draw graph when SmoothWidth slider is changed
-
ResEnhanceF1(n,h)
Redraw the graph when the factor1 slider is changed
-
ResEnhanceF2(n,h)
Redraw the graph when the factor2 slider is changed
-
ResEnhanceF3(n,h)
Redraw the graph when the SmoothWidth slider is changed
-
d=deriv(a)
First derivative of vector using 2-point central difference.
-
d=secderiv(a)
Second derivative of vector using 3-point central difference.
-
exp(-((x-pos)/(0.6006.*wid)) ...
-
n;
end
g=ones(size(x))./(1+((...
-
norm(z-y);
-
rtslid(fig,f,hh,varargin)
RTSLID Slider widget that responds to dragging realtime
-
s=boxcar(w)
boxcar(w) = Rectangular function of width w
-
s=tsmooth(Y,w)
% tsmooth(Y,w...
-
DemoResEnhance.m
-
DemoResEnhance2.m
-
DemoResEnhance2G.m
-
DemoResEnhance2L.m
-
InteractiveResEnhance.m
-
ResEnhance2Redraw.m
-
ResEnhanceRedraw.m
-
View all files
from
Interactive Resolution Enhancement
by Tom O'Haver
Mathematically simple, quickly-computable resolution enhancement for time-series signals consisting
|
| Enhancedsignal=enhance(signal,factor1,factor2,SmoothWidth)
|
function Enhancedsignal=enhance(signal,factor1,factor2,SmoothWidth)
% Resolution enhancement function by derivative method. the
% arguments factor1 and factor 2 are 2nd and 4th derivative weighting
% factors. Larger values of factor1 and factor2 will reduce the
% peak width but will cause artifacts in the baseline near
% the peak. Adjust the factors for the the best compromise.
% Use minimum smooth width needed to reduce excess noise.
% Use InteracticeResEnhance.m to adjust these factors
% interactively on your own signals.
% See DemoResEnhance.m and DemoResEnhance2.m for examples of use.
% Functions required: secderiv.m, tsmooth.m
d2=secderiv(signal); % Computes second derivative
d4=secderiv(d2); % Computes fourth derivative
Enhancedsignal = signal-factor1.*tsmooth(d2,SmoothWidth)+...
factor2.*tsmooth(tsmooth(tsmooth(d4,SmoothWidth),SmoothWidth),SmoothWidth);
|
|
Contact us at files@mathworks.com