function val = sum(a,b) default('a',1); % uses a function from file exchange
default('b',20); val = a+bend
I want to pass only the second argument and use the default for first,a. Something like below,
val = sum(b=2)
How can I do this in MATLAB?
Best Answer