title: Matlab: Plot multiple anonymous functions using fplot
body: <p>I am trying to create two anonymous functions and plot them using a single <code>fplot</code> statement. The following code works to plot a single function:</p>
  
  <pre><code>f = @(x) sin(x)
  
  fplot(f, [-3, 3])
  </code></pre>
  
  <p>However, when I include the following, it doesn't work:</p>
  
  <pre><code>g = @(x) cos(x)
  
  fplot([f, g], [-3, 3])
  </code></pre>
  
  <p>Does anyone know what is the issue here?</p>