Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the points.
A = [1 2;4 5; 6 7], represents points (1,2),(4,5) and (6,7)
Do you mean "Coordinates in matrix are arranged in counter-clockwise direction"?
Yes. They are assumed to be in counter clockwise to match up with the test suites. Thanks. I have updated the definition.
Additional test cases have been added.
Omit columns averages from a matrix
Similar Triangles - find the height of the tree
Back to basics 11 - Max Integer
Getting logical indexes
Find elements of set A those are not in set B
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office