Performs some tests on an argument.
slr_check_arg(arg, arg_name, tests) [ok, msg] = slr_check_arg(arg, arg_name, tests)
the variable to be tested
its name
a list containing the tests to be performed
answer of the tests
error message associated with the first failed test.
tests = list('type',['constant']) slr_check_arg(1, 'a', tests) | ![]() | ![]() |