how to draw a line with two points x and y at a given angle???

3 views (last 30 days)
alex
alex on 23 Sep 2016
Answered: Abhishek Jain on 23 Sep 2016
two points are x = x1 and x2 y = y1 and y2
and the given angle is theeta

Answers (1)

Abhishek Jain
Abhishek Jain on 23 Sep 2016
That is pretty simple.
x=[x1 x2];
y=[y1 y2];
plot(x,y)

Tags

Community Treasure Hunt

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

Start Hunting!