Connecting two data points in a plot with a line, and determining this line's slope
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I have an excel sheet of a lot of data points (X and Y coordinates), and I have inserted these data into matlab and plotted the figure.
On the figure, I want to connect one data point to another one, and then determine the slope of this line.
It is easy to just write down the coordinates of the two data points and calculate the slope, but I cannot do it manually like this because I have to do it many times for different data points.
Is it possible to do it on the figure to immediately get the line and its slope?
댓글 수: 1
dpb
2023년 1월 20일
Of course it is, but you've got to have some way to determine which two specific points; the Clairvoyant Toolbox™ is yet to be released...
채택된 답변
추가 답변 (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!