Hello, When fitting single dipoles on multiple time points at once, I have an error line 578: source.dip.unit = headmodel.unit; The syntax is incorrect that source.dip is an array with multiple dipoles. Should this be replaced with the following line ? [source.dip.unit] = deal(headmodel.unit); Cheers, Francois