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.
Swap the first and last columns
12410 Solvers
Create a cell array out of a struct
508 Solvers
Make a random, non-repeating vector.
2796 Solvers
Multiples of a Number in a Given Range
214 Solvers
420 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!