Please change the example [188 289] in your problem description to [188 189], as I believe [188 289] should return [9 1], rather than [9 9]. (By the way, great job picking 189 to use for a check. Right at the end of the two-digit numbers.)
uint8 is our friend.
Make the vector [1 2 3 4 5 6 7 8 9 10]
35728 Solvers
Back to basics 8 - Matrix Diagonals
783 Solvers
Put two time series onto the same time basis
175 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
549 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!