Triangle area with two vectors

조회 수: 4 (최근 30일)
Mohammed Saeed
Mohammed Saeed 2019년 12월 7일
댓글: asdsad Zhang 2022년 8월 16일
Write a function that returns the area of the triangle formed by the vectors u=[2 3 4] and v=[1 -3 -1]

채택된 답변

David Hill
David Hill 2019년 12월 7일
function Area = TriVecArea(u,v)
Area = .5*norm(cross(u,v));
end
  댓글 수: 2
Mohammed Saeed
Mohammed Saeed 2019년 12월 7일
Thank you so much i already solve it
asdsad Zhang
asdsad Zhang 2022년 8월 16일
Nice answer. Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Array and Matrix Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by