Filter löschen
Filter löschen

Triangle area with two vectors

9 Ansichten (letzte 30 Tage)
Mohammed Saeed
Mohammed Saeed am 7 Dez. 2019
Kommentiert: asdsad Zhang am 16 Aug. 2022
Write a function that returns the area of the triangle formed by the vectors u=[2 3 4] and v=[1 -3 -1]

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by