MATLAB function writing

Job ID: 35523929

Budget: ₹600 – ₹800 INR

Write a function func_polyarea(x, y) that takes two coordinate arrays with the vertices as arguments and returns the area. Assume that x and y are either vector or matrix.

Test the function on a triangle, a quadrilateral, and a pentagon where you can calculate the area by rnative methods for comparison.

The simple tests may be executed by running another file (main_polyarea_filein.m, main_polyarea_randin.m, main_polyarea_userin.m) that calls the function func_polyares.m:

3 methods for initialization of x &y (FILE INPUT, USER INPUT, RANDOM INPUT