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.16% Correct | 32.84% Incorrect
Last Solution submitted on Oct 09, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers42

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!