Possible Duplicate:
Default Arguments in Matlab
I have a function with about 7 parameters to be passed. 3 of them are mandatory and the rest 4 are optional parameters. I want to pass only the first 3 and the last parameter. How do I do this?
Let us say that the function is: function[...] = fun(a, b, c, d, e, f, g)
a, b, c - required inputs.
d, e, f, g - optional inputs.
I want to call fun and pass values for a, b, c and g.
In R, I can specify this in a very neat way like: fun(a=1, b=4, c=5, g=0);
What is the equivalent syntax in matlab?