Introduction - If you have any usage issues, please Google them yourself
Compute the minimal bounding rectangle of points in the plane
usage: [rectx,recty,area,perimeter] = minboundrect(x,y,metric)
arguments: (input)
x,y- vectors of points, describing points in the plane as
(x,y) pairs. x and y must be the same lengths.
metric- (OPTIONAL)- single letter character flag which
denotes the use of minimal area or perimeter as the
metric to be minimized. metric may be either a or p ,
capitalization is ignored. Any other contraction of area
or perimeter is also accepted.
DEFAULT: a ( area )