Find the number of rectangles - MATLAB Cody - MATLAB Central

Problem 42784. Find the number of rectangles

Difficulty:Rate

There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.

Solution Stats

66.07% Correct | 33.93% Incorrect
Last Solution submitted on Jun 07, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers36

Suggested Problems

More from this Author5

Community Treasure Hunt

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

Start Hunting!