title: arguments of a function in matlab
body: <p>I am writing a function with two arguments and I want the second argument to be processed as a string. The following code encounters an error</p>
  
  <p>function Derivative = derive ( Matrix9x1 , string Variable )
  end</p>
  
  <p>How can I tell it to matlab?
  I mean even if the user inputs 1 as the second argument it should be processed as an string
  and the user should be able to enter for example <strong>omega</strong> </p>