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
|
| ResEnhance2Redraw.m |
% Re-draw graph for DemoResEnhance2 when when any slider is changed
axes(h);
Enhancedsignal=enhance(signal,factor1,factor2,SmoothWidth);
y=Enhancedsignal';
x=t';
options = optimset('TolX',0.1);
start=[500 50];
estimated_lambda=FMINSEARCH('fitgauss',start,options,x,y,h);
MeasuredWidth= estimated_lambda(2);
PlotRange=[SmoothWidth.*3:length(t)-SmoothWidth.*3];
plot(t(PlotRange),signal(PlotRange), t(PlotRange),Enhancedsignal(PlotRange),'r')
title(['factor1 = ' num2str(factor1) ' factor2 = ' num2str(factor2) ' SmoothWidth = ' num2str(SmoothWidth) ' PeakWidth = ' num2str(round(MeasuredWidth))])
xlabel('BLUE = Original peak RED = Resolution-enhanced peak')
my=max(signal);
axis([t(1) t(length(t)) -.1*my 3*my]);
grid on
|
|
Contact us at files@mathworks.com