Problem 115. Distance walked 1D
Amitava, can you give a clearer idea of what your function inputs and outputs should look like?
If you leave one test the solution is simply 9. As is this submission is very poor.
Needs generalization and a larger test suite.
This is a pretty good idea for a problem but it's *very* poorly stated.
I cleaned up the problem statement and added a few more tests.
Very good problem. I had to solve the same one to determine whether a signal was oscillating or stable.
Solution CommentsShow comments
Problem Recent Solvers2405
Back to basics 9 - Indexed References
Create matrix of replicated elements
More from this Author100
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!