Code covered by the BSD License  

Highlights from
CubicSplineSmoothinV2

image thumbnail

CubicSplineSmoothinV2

by

 

01 Nov 2011 (Updated )

A GUI for smoothing noisy data.

CubicSplineSmoothing_Example.m
%% TO SEE HOW THE GUI WORKS EVALUATE CELLS INDEPENDANTLY
%% EXAMPLE 1
N = 100;
x = linspace(-pi, pi, N);
y = sin(x);
% add 10% noise based on gaussian
scale = 0.1;
n1 = randn(1, N); % noise with mean=0 and std=1;
y = y + n1.*y*scale;
CubicSplineSmoothinV2

%% EXAMPLE 2
N = 100;
x = linspace(-pi, pi, N);
y = exp(-x);
% add 10% noise based on gaussian
scale = 0.1;
n1 = randn(1, N); % noise with mean=0 and std=1;
y = y + n1.*y*scale;
CubicSplineSmoothinV2

%% EXAMPLE 3
N = 100;
x = linspace(-pi, pi, N);
y = sin(x);
% add 10% noise based on gaussian
scale = 0.1;
n1 = randn(1, N); % noise with mean=0 and std=1;
y = y + n1.*y*scale;
CubicSplineSmoothinV2

Contact us