I think you have your W and H mixed up in your example and test suite.
Thanks James, I've fixed it now.
I also used round, but I not seen to be the best solution.
36.6/20.6==16/9 is false.
The values from the test suite are also inaccurate.
2979 Solvers
Find the alphabetic word product
2321 Solvers
Is my wife right? Now with even more wrong husband
1241 Solvers
Create a two dimensional zero matrix
354 Solvers
Find the Oldest Person in a Room
5093 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!