To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
Howdy, I need help with this matlab related problem.
I have the equation of a curve and I need to find the tangent line at a given point. What should I be typing to make this happen?
I figured out how to get the derivative of the curve, but I have no idea how to make matlab run the x value of the given point to give me the slope (m) of the tangent line and plug that into the equation y-y_1=m(x-x_1).
I also need to plot the tangent line with the original curve. Do I just use plot(x,y)? Please help me, I have no idea how to type programming properly.
I also need to make the given point show up as an open circle on the graph. How do I do this?
It is a homework question, but I wanted to be a bit vague so I could get guided into solving it on my own, but after spending two hours on it, I'm not getting anywhere closer to solving it.
The curve is a witch of Agnesi curve and the point is directly on it.
The open circle is for the graph, it wants the point of tangency to show as an open circle.
If anyone can give me step by step instructions on how to do it, I'd be wonderfully happy, unfortunately, I don't understand any computer language, so if you can explain in words too, that would be great.
The curve and its derivative need to be graphed on the same graph.
No products are associated with this question.