Triangle area with two vectors

4 views (last 30 days)
Write a function that returns the area of the triangle formed by the vectors u=[2 3 4] and v=[1 -3 -1]

Accepted Answer

David Hill
David Hill on 7 Dec 2019
function Area = TriVecArea(u,v)
Area = .5*norm(cross(u,v));
end
  2 Comments
Mohammed Saeed
Mohammed Saeed on 7 Dec 2019
Thank you so much i already solve it
asdsad Zhang
asdsad Zhang on 16 Aug 2022
Nice answer. Thank you

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!