Matlab code to process data for presentation in vtrial data structure.