Note: Scripts can be pasted in the scripting window of Diatrack to extend the software functionalities. Scripts do not support debugging and have other limitations making them only useful for exploiting information from Diatrack. Commenting of the code is not supported and every line should be terminated with a colon.
1) Collects tracks in an N*3 array and calculate the corresponding diffusion coefficient by fitting the squared distance growth by a a line. All time differences are collected to increase the number of data points available. This script can be preceded by a track selection step where only tracks longer than e.g. ten time points are kept.