Solving MATLAB Problem: Mark an X or Cross on a Plot

  • Topic: MATLAB 
  • Thread starter sstefan1
  • Start date
  • Tags Tags
    Matlab
1 reply · 2K views · last reply
sstefan1
Messages
4
Reaction score
0
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!
 
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.