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.86% Correct | 17.14% Incorrect
Last solution submitted on Jan 24, 2019

Problem Comments

Solution Comments

Recent Solvers25

Suggested Problems

More from this Author53

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!