Given the nx3 matrix, which represents n points in three-dimensional space. All points lie on the plane. A plane is determined by its normal and by a point lying on it. Is there a Matlab function or any Matlabby way to search for an area directly from a matrix?
What I was trying to do was write a function that first calculates centroid, c, n-gon. Then we form triangles: (1,2, c), (2,3, c), ..., (n, 1, c). Calculate their area and summarize. But then I had to arrange the polygon points in a cyclic order, because they were disordered, which, as I understood it, were difficult. Is there an easy way to do this?
Is there an easier way in Matlab to just call some function on a matrix?
source
share