Cody

Problem 1428. Find the optimal shape to bring the maximum product by a given perimeter

Solution 231788

Submitted on 17 Apr 2013 by Michael C.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% p = 10; assert(isequal(max_product(p),[4 39.0625])) p = 29; assert(isequal(max_product(p),[11 4.276204243443044e+04])) p = 49; assert(isequal(max_product(p),[18 6.739448339947788e+07]))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!