How to find angle made by tangent at the end of a curve?

2 views (last 30 days)
Hi,
I have attached the image of a curve obtained by using ode45 . Now my intention is to find the angle that the tangent at final points of the free end of the curve makes with the x-axis.
How do I do it?
Thank you

Accepted Answer

KSSV
KSSV on 8 May 2018
Get the equation of tangent.....convert it to y = mx+c form......m should gives you slope which is the angle you want.
  4 Comments
Purush otham
Purush otham on 15 May 2018
What to do if I am getting negative slope, though clearly the plot is not? I tried abs but it does not give the correct angle. The correct angle is only obtained when subtracted from 180 or added with 90.
Torsten
Torsten on 15 May 2018
Instead of posting a figure, you should include the calculated coordinates of the last - say - 5 points of the curve.

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!