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

    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook