Matlab classes for sampled and point-processes