by Nick Nelson npnelson3@gmail.com
topas2matlab() converts binned TOPAS outputs to a Matlab array. The function will evauluate the dimensions of the dose grid (1D, 2D, or 3D voxels) and places the respective TOPAS values into a 1D, 2D, or 3D array.
file = 'TestData/3D.csv'
topas2matlab(file)