Problem 57540. Repeatitive Summation
45.45% Correct | 54.55% Incorrect
Last Solution submitted on May 25, 2023
David Hill on 29 Jan 2023
I am very confused by your explanation. b will be integers in the range [1, numel(x)], doesn't the second example violate this (where b has -2 and 0 as members)? I still don't see how you are getting your output with the explanation provided.
Dyuman Joshi on 30 Jan 2023
There was some mishap in that example, David. b was supposed to be a (and vice-versa), as you pointed out the violation.
It has been cleared out. I hope the question is clear now.
Solution CommentsShow comments
Problem Recent Solvers6
Find the elements of a matrix according to a defined property.
Celsius to Fahrenheit converter
Generate binary combinations for a given number of bit(s)
More from this Author30
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!