I have a non-linear plot between two variables, which is created as shown below:
gam6 = 0:0.001:0.025;tau6 = 7.*(gam6-20.*gam6.^2);figureplot(gam6,tau6)title('\tau_6 vs. \gamma_6')ylabel('\tau_6')xlabel('\gamma_6')
There is a point on the x-axis, located at (-0.035,0), and I'd like to show the tangent line of the plot, which also intersects the point on the x-axis. Ideally, I'd also like to know where on the plot this tangent line hits (specific x y coordinates). Is this something I can do in Matlab?
A screenshot of my plot can be seen below, where the red * on the x-axis is the desired intersection point of the tangent line.
Best Answer