Possible duplicate:Matlab's default argumentsHow to handle function / name argument pairs in MATLAB
What if you need to create a function with tones of additional parameters. Is there a way to call these functions after naming the passed arguments for readability:
foo(123, and=456)
A comparable way to do this in Matlab is to have name / value pairs:
foo(123,'and',456,'something',[1 2 3])
See the answers to this question on how to deal with them.