Currently the zeffiro_interface main function's way of handling key–value arguments does not follow Matlab's best practices, which involves using an arguments ... end block to declare key–value argument pairs as follows:
function output = f(args)
arguments
args.arg1 (sizes...) type {validators...} = default_value;
args.arg2 (sizes...) type {validators...} = default_value;
...
args.argn (sizes...) type {validators...} = default_value;
end
output = function_of(args);
end
Currently the
zeffiro_interface
main function's way of handling key–value arguments does not follow Matlab's best practices, which involves using anarguments ... end
block to declare key–value argument pairs as follows:This allows calling the function
f
withor from Matlab r2021a onwards with
No need to use a loop or increment a counter / index with this method.