Learned from Solution 883700, by Tim. run this just for checking: I reckon that function "sum" in that solution is redundant, and my guessing seems to be right.
Back to basics 25 - Valid variable names
293 Solvers
Make a run-length companion vector
512 Solvers
376 Solvers
Rounding off numbers to n decimals
1052 Solvers
2627 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!