Code covered by the BSD License
-
DemoSmooth1(n,h)
Re-draws graph when smooth width slider is moved
-
DemoSmooth2(n,h)
Re-draws graph when number of passes slider is moved
-
DemoSmooth3(n,h)
Re-draws graph when the Resample slider is moved
-
SmoothSlider1(n,h)
Re-draws graph when smooth width slider is moved
-
SmoothSlider2(n,h)
Re-draws graph when smooth passes slider is moved
-
[PeakX, PeakY, Width]=PeakEst...
Least-squares estimate of peak height, position, and width of a Gaussian
-
exp(-((x-pos)./(0.6006.*wid))...
-
rtslid(fig,f,hh,varargin)
RTSLID Slider widget that responds to dragging realtime
-
s=bsmooth(a,w)
% Convolution...
-
s=bsmooth2(a,w)
% bsmooth(a,...
-
s=gsmooth(a,w)
% smooth(a,v) ...
-
s=tsmooth(Y,w)
% tsmooth(Y,w...
-
s=tsmooth2(Y,w)
% tsmooth(Y,...
-
smoothwidth. Faster than
% c...
-
smoothwidth. Works well with ...
-
DemoSmoothRedraw.m
-
DemoSmoothRedraw2.m
-
DemoSmoothSlider.m
-
DemoSmoothSlider2.m
-
SmoothSlider.m
-
SmoothSliderRedraw.m
-
SmoothSliderTest.m
-
View all files
from
Interactive Smoothing
by Tom O'Haver
Interactive smoothing for time-series signals
|
| SmoothSliderRedraw.m |
% Redraws graph for SmoothSlider when the sliders are changed
axes(h);
PlotRange=[SmoothWidth.*1:length(X)-SmoothWidth.*1];
temp=Y;
for k=1:Passes,
% You can use any smooth function here in place of fastsmooth,
temp=bsmooth(temp, SmoothWidth);
end
SmoothY=temp;
plot(X(PlotRange),SmoothY(PlotRange))
figure(1);
title(['Smooth Width = ' num2str(SmoothWidth) ' Number of passes = ' num2str(Passes) ' Signal maximum = ' num2str(max(SmoothY)) ])
xlabel('The smoothed signal is in the vector SmoothY')
h2=gca;
axis([X(1) X(length(X)) min(Y) max(Y)]);
grid on
|
|
Contact us at files@mathworks.com