Perimeter - MATLAB Cody - MATLAB Central

Problem 1385. Perimeter

Difficulty:Rate

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

Solution Stats

55.19% Correct | 44.81% Incorrect
Last Solution submitted on Mar 28, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers149

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page