title: How do I set default values for functions parameters in MATLAB?
body: <p>Is it possible to have default arguments in MATLAB?</p>
  <p>For instance, here:</p>
  <pre><code>function wave(a, b, n, k, T, f, flag, fTrue=inline('0'))
  </code></pre>
  <p>I would like to have the true solution be an optional argument to the wave function. If it is possible, what is the proper way to do this?</p>
  <p>Currently, I am trying what I posted above and I get:</p>
  <pre><code>??? Error: File: wave.m Line: 1 Column: 37
  The expression to the left of the equals sign is not a valid target for an assignment.
  </code></pre>