필터 지우기
필터 지우기

Can someone help how to calculate the slope, tangent line and normal line? I'm lost on how I should code those three and I don't have much infor from clas how to code these 3.

조회 수: 1 (최근 30일)

채택된 답변

Walter Roberson
Walter Roberson 2022년 10월 2일
The equation of a straight line is often stated in the form
y = m*x + b
You have calculated y0 (the value the equation will have at x0), and you have calculated m, so now you need to calculate b and put the result together in the form ytangent = m*x+b
The normal to a line at a point passes through the same line but has a slope 90 degrees different.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by