How to put lines with pre-defined slopes on a plot
4 次查看(过去 30 天)
显示 更早的评论
Hi all. I want to put lines with pre-defined slopes (i.e. between 0.85 and 1.15) onto a matlab plots. Any help is much appreciated.Thanks
3 个评论
Mathieu NOE
2021-4-30
hello
you simply have to compute the derivative of your data (gradient )and search the points where the slope reaches the two targeted values
it's then fairly simple to draw a portion of line knowing the x and y coordinates and the slope
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!