MATLAB: Area of a triangle

area

Is there a function to find area of triangle,not by using Heron's algorithm.

Best Answer

How about polyarea?
>> x = [0, 0, 4];
>> y = [0, 3, 0];
>> area1 = polyarea(x,y)
area1 =
6
>> area2 = 0.5*3*4
area2 =
6