Code covered by the BSD License  

Highlights from
Hidden Markov Models for Molecular Motors

image thumbnail
from Hidden Markov Models for Molecular Motors by Fred Sigworth
A set of functions for analysing noisy recordings of the random stepping of molecular motors

xs=Step125(x)
function xs=Step125(x)
% Find the value in a 1..2..5 x 10^n sequence that is >= x.
%
n=floor(log10(x));
x0=x/10^n;
testvals=[0.5 1 2 5 10];
index=find((x0<=testvals),1);
xs=testvals(index)*10^n;

Contact us at files@mathworks.com