I have a function in matlab of the form fun(a,b,c), wherethe using may or may not give argument 'c' when he calls the function. I have to use a switch case on 'c' later in that function, and thus need to check whether user called the function with 2 or 3 arguments?
How to do that?