Problem 42480. Go back n times

You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following;

 [ 1 NaN NaN NaN
   2   1 NaN NaN
   3   2   1 NaN
   4   3   2   1
   5   4   3   2 
   6   5   4   3 ]

Solution Stats

67.65% Correct | 32.35% Incorrect
Last Solution submitted on May 07, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers43

Suggested Problems

More from this Author92

Problem Tags

Community Treasure Hunt

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

Start Hunting!