Good problem
Wouldn't [2 2 2 6] make a three of a kind?
Replace NaNs with the number that appears to its left in the row.
2019 Solvers
3970 Solvers
192 Solvers
Flip the main diagonal of a matrix
506 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!