Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1385. Perimeter

Created by andrea84

Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example:

 xy = [ 0,0 ;
        1,0 ;
        1,1 ;
        0,1 ;
        0,0 ];
 L = 4


Problem Group

Solution Statistics

48 correct solutions 28 incorrect solutions
Last solution submitted on Jul 24, 2016

Problem Comments