How many rectangles in a grid ? - MATLAB Cody - MATLAB Central

Problem 2173. How many rectangles in a grid ?

Difficulty:Rate

How many rectangles are there in an m × n grid ?

For example, if m=1 & n=2, we have 3 rectangles.

Solution Stats

77.98% Correct | 22.02% Incorrect
Last Solution submitted on Jun 01, 2025

Problem Comments

Solution Comments

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

Problem Recent Solvers76

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

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

Start Hunting!