There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers38
Suggested Problems
-
middleAsColumn: Return all but first and last element as a column vector
654 Solvers
-
Remove the two elements next to NaN value
714 Solvers
-
Celsius to Fahrenheit converter
674 Solvers
-
Rotate a matrix for 180 degree
188 Solvers
-
Back to Basics - Find no. of elements in a matrix?
329 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please change the function call in the test suite to your_fcn_name(m,n) instead of your_fcn_name(x).
Please check the test cases. x???