Date: Aug 27, 2013 9:29 AM
Author: Angelia
Subject: Capture function input and determine input variable type

I want my function myFun (num, string) to allow user to input either argument num or string (or both). After using nargin to determine the number of input, how do I capture the input and determine whether it's a number or a string?