MATLAB: Listing the input arguments and values of a function in a Matrix

functionsinput

Is there a way to list the input arguments in a function by outputting them in a Cell array
[input1 = x; input2 = y; input3 =z; ..etc]
I have a large function with about 20 inputs and want to check on them all before I proceed.

Best Answer

Yes, you can. Use this example:
InputArgument={'this is the string for the pattern','pattern'}
strfind(InputArgument{:});