title: How to overload user defined functions in Matlab?
body: <p>I am trying to plot sequences, I have written a function </p>
  
  <pre><code>function show_seq(seq)
   plot (seq)
  end
  </code></pre>
  
  <p>I now want to overload this show_seq to show 2 sequences something like </p>
  
  <pre><code>function show_seq(seq1, seq2)
    plot(seq1,'color','r');
    plot(seq2, 'color', 'b');
  end
  </code></pre>
  
  <p>but this does not work, does anyone have idea about how to overload functions in MATLAB?</p>