image thumbnail

Fitting Data with A Sudden Discontinuity

by

 

27 May 2010 (Updated )

Find the displacement and supply it as a shift in a custom equation.

heaviside(input)
function result = heaviside(input)
result = input;
result(input > 1) = 1;
result(input < 1) = 0;
result = result(:);

Contact us