Increment up an input vector - MATLAB Cody - MATLAB Central

Problem 43688. Increment up an input vector

Difficulty:Rate

Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

Solution Stats

65.12% Correct | 34.88% Incorrect
Last Solution submitted on Jun 14, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers81

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!