view assertNumberOfArguments.m @ 1302:a0d615bde7f8 feature/poroelastic

Add the hollow option to the anisotropic diffops
author Martin Almquist <malmquist@stanford.edu>
date Fri, 10 Jul 2020 20:24:23 -0700
parents 2dee6c9e827d
children
line wrap: on
line source

function assertNumberOfArguments(fun, N)
    if nargin(fun) ~= N
        error('sbplib:assertNumberOfArguments:wrongNumberOfArguments', '"%s" must have %d, found %d', inputname(1), N, nargin(fun));
    end
end