view assertScalar.m @ 1346:464e6f65c2c6 feature/poroelastic

Refactor computation of borrowing from C. Update to correct number of boundary points for borrowing from R.
author Martin Almquist <martin.almquist@it.uu.se>
date Tue, 30 Apr 2024 14:18:47 +0200
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