Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simple matlab problem

  1. Jul 9, 2012 #1
    hi everyone!

    I need to mark an X or a cross on a plot at a specific x-value. Any ideas how i can do this?

    Thank you!
     
  2. jcsd
  3. Jul 9, 2012 #2
    You can use the "scatter" function to put a cross on an existing 2D plot, eg.

    hold on
    scatter(a,b,'x')

    This will put a lone cross at the coordinate (a,b) on the current plot.

    I can't be more specific without knowing the kind of plot you're drawing or the nature of the point to be marked.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook