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

differential equationsgraphintegrationnumerical integrationplotplotting

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

Best Answer

Get the equation of tangent.....convert it to y = mx+c form......m should gives you slope which is the angle you want.