필터 지우기
필터 지우기

components of a vector with sign, having direction and magnitude

조회 수: 4 (최근 30일)
Andrea Somma
Andrea Somma 2022년 11월 13일
댓글: Andrea Somma 2022년 11월 13일
I have the direction of a vector lets say passing trough [0.3 4 5], [5 7 32] (x,y,z), and the magnitude 45; how can I calculate the components of that vector along x,y and z in an easy way?

채택된 답변

Walter Roberson
Walter Roberson 2022년 11월 13일
take the difference between the endpoints, getting vector components. Divide the vector by the length of the vector. Multiply the result by the desired magnitude. Add the first point to get the resulting point.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by