Find a y axis increasing point in a plot -
Show older comments

This is a similar graph to what i have.
keeping in mind the values of Y-axis always changes differently when i run the script on different data
What code do i need to add to find the exact begining point of the Y-axis when increasing at (-1) at point of X-axis
and find the exact point of it Y-axis when it reach (1) in x axis.
Is it possible to give out the subtraction point of X(2)-X(1) and presented in [legend]
unfortunatly i dont want to use any of the figure functions
Accepted Answer
More Answers (1)
KSSV
on 21 Oct 2021
Let y be your array.
idx = find(y==1) ;
iwant = idx(1)-1
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!