You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
Cite As
Jean-Luc Dellis (2026). getslopeintercept (https://in.mathworks.com/matlabcentral/fileexchange/23415-getslopeintercept), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3.0.0 (2.22 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.3.0.0 | Simplified version to comply the last Matlab releases. |
||
| 1.2.0.0 | * fix the bug
|
||
| 1.0.0.0 |
