How to find a y value given the x on a plot?
Show older comments
Hello!
My current problem is I'm trying to achieve a plot like this:

But all I have is the blue plot and the x's of the values I want to scatter plot on the line. I was wondering if there was a way to get the y values from the plot.
I tried idexing the blue signal with che x's, but it gives me an ''index must be positive integers'' error.
Can anyone help me with that?
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!