subs does not work with quantity.EquidistantDomain
It tries to convert a quantity.Domain object into a quantity.EquidistantDomain object. Since this is not possible an error occurs. To solve the issue, either the conversion must be done by hand, or there is a way to tell matlab not to convert Domain objects into EquidistantDomain objects.