MATLAB: How to find the area of a triangle given 3 vertices areatriangle By using MATLAB find the area of the triangle with vertices (3,1,0), (1,1,1) and (0, -2,-1). I tried using polyarea, sounds good, doesn't work, never gonna happen. Best Answer Pick one vertex, let say V1, as "origin"Get the two vectors of from this point to the other two points (V2-V1) and (V3-V1)Calculate the cross product between these two vectorsThe magnitude of this cross product is half the size of your triangleMore info? Google is your friend ... Related SolutionsMATLAB: How to correctly order polygon vertices Compute the centroid of the "polygon"Compute the rays from the centroid to each of your "vertices".Use atan2 to compute the angle of this ray from the horizontalSort the vertices according to this angle. MATLAB: Find area of the filled region of a graph trapz(x,y) Related QuestionHow to combine sets defined by verticesANDing Areas of multiple polygons given verticesFind vertices and plot triangle in MatlabHow to draw multiple patches with different number of vertices
Best Answer