Cody

Problem 42480. Go back n times

Created by Mehmet OZC in Community

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

82.35% Correct | 17.65% Incorrect
Last solution submitted on Dec 20, 2018

Problem Comments

Solution Comments