matRad is a dose calculation and inverse treatment planning toolkit for radiotherapy research and education written in Matlab.