Problem 2173. How many rectangles in a grid ?
How many rectangles are there in an m × n grid ?
For example, if m=1 & n=2, we have 3 rectangles.
Solution Stats
Problem Comments
-
1 Comment
Georges
on 21 Jul 2014
Good one :)
Solution Comments
Show commentsProblem Recent Solvers72
Suggested Problems
-
2248 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
802 Solvers
-
Find out missing number from a vector of 9 elements
290 Solvers
-
Implement a bubble sort technique and output the number of swaps required
267 Solvers
-
Sum the 'edge' values of a matrix
329 Solvers
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!