Mercurial > repos > public > sbplib
view assertScalar.m @ 809:94f0f0b0d721 feature/poroelastic
Allow functions with variable number of arguments in grid.evalOn
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 27 Jul 2018 10:13:02 -0700 |
parents | 6490b5f950fb |
children |
line wrap: on
line source
function assertScalar(obj) if ~isscalar(obj) error('sbplib:assertScalar:notScalar', '"%s" must be scalar, found size "%s"', inputname(1), toString(size(obj))); end end