Does MATLAB support arguments?

Possible duplicate:
Matlab's default arguments
How 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) 
+6
source share
1 answer

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.

+8
source

All Articles