Creating a plot with line plot and scatter plot in the same figure

Discussion in 'MATLAB' started by Andrew, Jul 25, 2008.

  1. Andrew

    Andrew Guest

    Hello,

    I am looking to plot a line plot of a function (say, x^2)
    and a scatter plot of various data points on the same
    figure. Is there a way to do this?

    Perhaps it involves using the "hold on" command?

    Thanks so much for your time!

    Andrew
     
    Andrew, Jul 25, 2008
    #1
    1. Advertisements

  2. Andrew

    Bruno Luong Guest

    Likely yes.

    Bruno
     
    Bruno Luong, Jul 25, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.