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

  • Context: MATLAB 
  • Thread starter Thread starter sstefan1
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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!
 
Physics news on Phys.org
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.