getslopeintercept

버전 1.3.0.0 (2.22 KB) 작성자: Jean-Luc Dellis
In the current figure, you have to click twice. The function will display the slope and the intercept of the drawn line in a text box.
다운로드 수: 3K
업데이트 날짜: 2018/11/13

라이선스 보기

SYNTAX:
[p1,p2,slope,inter]=getslopeintercept
OUTPUTS:
P1= coordinates of the first cliked point
P2= coordinates of the second cliked point
SLOPE= slope of the drawn line
INTER= intercept Y(X=0)
WHAT ?
In the current figure, you have to click twice.
The GETSLOPEINTERCEPT function will display
the slope and the intercept of the drawn line in a text box
EXAMPLE
plot([1:10],[1:10].^0.5,'-o')
getslopeintercept

인용 양식

Jean-Luc Dellis (2024). getslopeintercept (https://www.mathworks.com/matlabcentral/fileexchange/23415-getslopeintercept), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Simplified version to comply the last Matlab releases.

1.2.0.0

* fix the bug
* add an example in the help
* improve the capabilities, the function can now work on several plots
I apologize to all who downloaded the bad-coded function and thanks MATT who warms me.

1.0.0.0