Mean trapping time and its distribution.
a=tt(x) [a b]=tt(x)
Descriptiona=tt(x) computes the mean of the length of the vertical line structures in a recurrence plot, so called trapping time tt.
[a b]=tt(x) computes the tt and the length of the found vertical lines, stored in b. In order to get the histogramme of the line lengths, simply call hist(b,[1 max(b)]).