Doug's MATLAB Video Tutorials

December 20th, 2011

Plotting multiple lines on a figure in MATLAB

This MATLAB graphics tutorial shows you how you can plot multiple lines on the same plot.
Get Adobe Flash player

One Response to “Plotting multiple lines on a figure in MATLAB”

  1. Vick replied on :

    Hi Doug, Good video, just a minor comment to add (and I almost thought you’d say that in your video towards the end). Plotting like this, you don’t know anymore which color represents which phase. So you might wanna turn on the legend.
    >> legend(’1′,’2′,’3′)

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of MathWorks.