Matlab code from which TheVirtualBrain scientific library was derived.