MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayThis Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]

**Input:** polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};

**Output:** 0.5

Related Challenges:

7 correct solutions
1 incorrect solutions

Last solution submitted on Aug 03, 2013

1 Comment

Richard Zapor
on 25 Apr 2013

Impressive Cell array processing, complex usage, arrayfun, and function vectorization.

2 Comments