Find a y axis increasing point in a plot -
显示 更早的评论

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
采纳的回答
更多回答(1 个)
KSSV
2021-10-21
Let y be your array.
idx = find(y==1) ;
iwant = idx(1)-1
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
