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..

조회 수: 3 (최근 30일)
(~Second Photo~ Ps. I got some answers and values but it is still wrong.)

답변 (1개)

Walter Roberson
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
Neil Allen
Neil Allen 2022년 10월 3일
okay so now I got the answers and have the right form of graph but the I don't what is the error that it says here.
here is how it is coded and I am not authorize to change the highlighted codes.
Walter Roberson
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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by