How to see if the same point is plotted on two different graphs
Show older comments
I am writing a code that results in something if two points on two different plots are the same. I don't know how to write the conditional statement for the if statement. I want it to be something like if (x1,y1) of graph 1 = (x2,y2) of graph 2, show this message. I don't know how to format the names of certain points in the plot. The first plot is made up of many plotted data points, and the second just has one point plotted at any given time. I want to see if that one point ever lines up with the points on the first graph.
1 Comment
Rik
on 26 Apr 2018
As long as you have the underlying data, I would suggest using that, instead of getting the data from the figures.
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!