given a m*n grid

calculate the no of possible squares & rectangles on that grid.

output: y=[no of rectangles , no of sqaures]

Solution Stats

51 Solutions

23 Solvers

Last Solution submitted on Jul 16, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers23

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

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

Start Hunting!