Triangle area with two vectors

3 visualizzazioni (ultimi 30 giorni)
Mohammed Saeed
Mohammed Saeed il 7 Dic 2019
Commentato: asdsad Zhang il 16 Ago 2022
Write a function that returns the area of the triangle formed by the vectors u=[2 3 4] and v=[1 -3 -1]

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by