What code what should I input in the slope, y tangent and y normal? I am currently stuck and tried some codes but it still has an error as seen in the second photo..
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1142935/image.png)
(~Second Photo~ Ps. I got some answers and values but it is still wrong.)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1142940/image.png)
0 个评论
回答(1 个)
Walter Roberson
2022-10-2
https://www.mathworks.com/matlabcentral/answers/1816015-can-someone-help-how-to-calculate-the-slope-tangent-line-and-normal-line-i-m-lost-on-how-i-should#answer_1065115
is tangent line is a line, and needs to be expressed in the form y = m*x+b for some numeric m, some numeric b, and symbolic x
You already calculated m and I pointed out earlier how to calculate b.
2 个评论
Walter Roberson
2022-10-3
ynormal should also be of the form y=m*x+b, but with a slope that is calculated to be perpendicular to ytangent.
You should not be hardcoding m or the intercept for ytangent or the slope for ynormal.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!