Code covered by the BSD License
-
DerivativeBackground(n,h)
Re-draws graph when Background slider is changed
-
DerivativeHeight(n,h)
Re-draws graph when Amp slider is changed
-
DerivativeNoise(n,h)
Re-draws graph when Noise slider is changed
-
DerivativeOrder(n,h)
Re-draws graph when Order slider is changed
-
DerivativeResample(n,h)
Re-draws graph when Resample slider is changed
-
DerivativeScale(n,h)
Re-draws graph when Exponent slider is changed
-
DerivativeSlope(n,h)
Re-draws graph when BackgroundPosition slider is changed
-
DerivativeSmoothWidth(n,h)
Re-draws graph when Smoothwidth slider is changed
-
DerivativeWidth(n,h)
Re-draws graph when Width slider is changed
-
InteractiveDerivative1(n,h)
Re-draws graph when Smoothwidth slider is changed
-
InteractiveDerivative2(n,h)
Re-draws graph when Scale slider is changed
-
InteractiveDerivative3(n,h)
Re-draws graph when scale slider is changed
-
InteractiveDerivative4(n,h)
Re-draws graph when Order slider is changed
-
d=deriv(a)
First derivative of vector using 2-point central difference.
-
exp(-((x-pos)./(0.6006.*wid))...
-
rtslid(fig,f,hh,varargin)
RTSLID Slider widget that responds to dragging realtime
-
s=boxcar(w)
boxcar(w) = Rectangular function of width w
-
s=bsmooth(a,w)
% Convolution...
-
smoothwidth. Works well with ...
-
DerivativeDemo.m
-
InteractiveDerivative.m
-
InteractiveDerivativeRedraw.m
-
InteractiveDerivativeTest.m
-
RedrawDerivative.m
-
View all files
from
Interactive Derivative
by Tom O'Haver
Interactive Derivative for time-series signals.
|
| smoothwidth. Works well with signals up
% to 100,000 points in length and smooth widths up to 1000 points.
% Faster than bsmooth for smooth widths above 500 points.
% T. C. O'Haver, 2006.
w=round(smoothwidth);
SumPoints=sum(Y(1:w));
s=zeros(size(Y));
ha |
function SmoothY=fastbsmooth(Y,smoothwidth)
% fastbsmooth(Y,w) smooths vector Y by unweighted sliding-average
% (boxcar) smooth of width = smoothwidth. Works well with signals up
% to 100,000 points in length and smooth widths up to 1000 points.
% Faster than bsmooth for smooth widths above 500 points.
% T. C. O'Haver, 2006.
w=round(smoothwidth);
SumPoints=sum(Y(1:w));
s=zeros(size(Y));
halfw=round(w/2);
for k=1:length(Y)-w,
s(k+halfw)=SumPoints;
SumPoints=SumPoints-Y(k);
SumPoints=SumPoints+Y(k+w);
end
SmoothY=s./w;
|
|
Contact us at files@mathworks.com