The following Matlab project contains the source code and Matlab examples used for get the slope and intercept of drawn lines.
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 draw a line between 2
clicked points of a planar graph.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

## Project Files:

File Name | Size |
---|---|

getslopeintercept.m | 5044 |

license.txt | 1315 |