MATLAB: Triangle area with two vectors

MATLAB and Simulink Student Suitevectors

Write a function that returns the area of the triangle formed by the vectors u=[2 3 4] and v=[1 -3 -1]

Best Answer

function Area = TriVecArea(u,v)
Area = .5*norm(cross(u,v));
end