Please add a simple example to the Problem Statement to illustrate the method you describe in words. Please also add further tests to the Test Suite (cf. Problem 44521). Currently it is easily 'hacked', as demonstrated with Solution 1465530.
28539 Solvers
Find the longest sequence of 1's in a binary sequence.
3415 Solvers
2002 Solvers
Renaming a field in a structure array
737 Solvers
Find the maximum two numbers of every column of a matrix
140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!