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
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers21
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15798 Solvers
-
Matrix with different incremental runs
589 Solvers
-
How long do each of the stages of the rocket take to burn?
484 Solvers
-
77 Solvers
-
Write a function man that takes a row vector v and returns a matrix H as follows..
648 Solvers
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!
Just wondering, how can a 1x1 grid have any rectangles or square?
Just wondering about the same thing --- I think what's meant here is that you've got a grid of MxN squares, i.e. of (M+1)x(N+1) points, rather than MxN points.