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에서 Log Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!